title: How to print full precision of floating numbers [Python]
body: <p>I had written the following function in which values of x,y were passed:</p>
  
  <pre><code>def check(x, y):
      print(type(x))
      print(type(y))
      print(x)
      print(y)
      if x == y:
          print "Yes"
  </code></pre>
  
  <p>Now when I called
  <code>check(1.00000000000000001, 1.0000000000000002)</code>
  it was printing:</p>
  
  <pre><code>&lt;type 'float'&gt;
  &lt;type 'float'&gt;
  1.0
  1.0
  </code></pre>
  
  <p>Now from the print statements of variables x &amp; y, it was hard for me to debug why x != y (though both were printing same values). Though I resolved it by printing x - y which gave me the difference but is there any way to modify print statement so that to know why x!=y in this particular use case without using any external print libraries and subtraction solution.</p>