[issue7632] dtoa.c: oversize b in quorem
Mark Dickinson
report at bugs.python.org
Fri Jan 15 16:20:41 CET 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
I was considering downgrading this to 'normal'. Then I found Bug 8, and it's a biggie:
>>> 10.900000000000000012345678912345678912345
10.0
Now I'm thinking it should be upgraded to release blocker instead.
The cause is in the _Py_strtod block that starts: 'if (nd > STRTOD_DIGLIM) {'... It truncates the input to 18 digits, and then deletes trailing zeros. But the code that deletes the zeros is buggy, and passes over the digit '9' just before the point.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7632>
_______________________________________
More information about the Python-bugs-list
mailing list