Python&#x27;s print method is actually fairly clever picking the &quot;nicest&quot; representation that&#x27;s still correct.<p><a href="https:&#x2F;&#x2F;docs.python.org&#x2F;2&#x2F;tutorial&#x2F;floatingpoint.html#tut-fp-issues" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;2&#x2F;tutorial&#x2F;floatingpoint.html#tut-fp...</a><p>Quote:<p>&quot;In current versions, Python displays a value based on the shortest decimal fraction that rounds correctly back to the true binary value, resulting simply in ‘0.1’.&quot;