Floating point calculation problem

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Feb 2 07:11:09 EST 2013


Schizoid Man wrote:

> I know this is probably redundant but Python 2.7.3 is running on a Mac and
> 3.3.0 on a PC, so it's not exactly an apples-v-apples comparison.

It's not impossible that there is a slight difference in some of the
floating point functions. E.g. when you call math.log(s), one version might
be accurate to (say) 15 decimal places and the other to (say) 14 decimal
places, and that difference is magnified by subsequent calculations.



-- 
Steven




More information about the Python-list mailing list