Python please don't muck with my number : <p>I'm writing a testing tool in python that downloads REST data, tosses the return value through json.loads() and then compares the value returned from the DB with an expected value.  Unfortunately trying to print out that value or compare that value fails.  Even though the pretty print of the JSON / Rest data is correct and has the full value.  So something as simple as the example below prints lesser precision </p>

<p>Example:</p>

<pre><code>print 1.414213562373095
1.41421356237
</code></pre>

<p>Note the reduced precision. Running an equal compare does not work either.  In both cases I'm coercing the value to a string since comparing two numbers such as 1.13337 and 1.133333333333337 compare as the same number.  Although technically correct we want to be sure that the output from the DB is at the promised precision.  I would be grateful for any solutions out there.  Thanks in advance.</p>
