 <p>If <code>x</code> needs more precision than provided by double-precision floating point numbers then the comparison will fail.</p> <pre><code>&gt;&gt;&gt; int(float(10**23)) 99999999999999991611392L </code></pre>