[Python-Dev] small floating point number problem

Tim Peters tim.peters at gmail.com
Wed Feb 8 20:07:58 CET 2006

[Raymond Hettinger]
> ...
> The asymmetric handling of denormals by the atof() and ftoa() functions is
> why you see a difference.  A consequence of that asymmetry is the breakdown
> of the expected eval(repr(f))==f invariant:

Just noting that such behavior is a violation of the 754 standard for
string->double conversion.  But Microsoft's libraries don't _claim_ to
support the 754 standard, so good luck suing them ;-).  Python doesn't
promise anything here either.

More information about the Python-Dev mailing list