title: How can I check two float is exactly equal?
body: <p>I write below program but My program cannot check the two number is equal or not.
  There is no error,
  I would be appreciate for any help.</p>
  
  <pre><code>import math
  def IsCollinding(ball1,ball2):
    distance=math.sqrt((((ball2[0]-ball1[0])**2)+((ball2[1]-ball1[1])**2)))
    print(type(distance))
    print(type(ball1[2]+ball2[2]))
    if(distance==ball1[2]+ball2[2]):
      print("Is Coliding")
    else:
      print("Not Coliding")
    print(distance)
    print(ball1[2]+ball2[2])
  ball1=[2,2,3]
  ball2=[11,11,9.7279220614]
  IsCollinding(ball1,ball2)
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>&lt;type 'float'&gt;
  &lt;type 'float'&gt;
  Not Coliding
  12.7279220614
  12.7279220614
  </code></pre>