[issue532631] Confusions in formatfloat
Mark Dickinson
report at bugs.python.org
Sun Mar 29 17:07:02 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
I've replaced the fabs(x) / 1e25 >= 1e25 test with fabs(x) >= 1e50 in
r70678. On IEEE 754 systems, assuming round-to-nearest, these two tests
have identical meaning.
I've also fixed the docs, replacing 1e25 by 1e50.
Is there a good reason for
'%.100f'% 1e49
to raise OverflowError (rather than providing the requested 100 places
after the decimal point), other than implementation convenience?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue532631>
_______________________________________
More information about the Python-bugs-list
mailing list