[issue1725] -1e-1000 converted incorrectly
Mark Dickinson
report at bugs.python.org
Thu Jan 3 17:05:41 CET 2008
Mark Dickinson added the comment:
Presumably float('-1e-1000') should also give -0. (?)
If so, then it looks as though the fix ought to go in PyOS_ascii_strtod:
one obvious possibility would be to replace any leading '-' sign by a '+'
sign before calling the system strtod, then negate the result afterwards.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1725>
__________________________________
More information about the Python-bugs-list
mailing list