[issue10650] decimal.py: quantize(): excess digits with watchexp=0

Stefan Krah report at bugs.python.org
Wed Dec 8 15:36:17 CET 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

NaNs, however, are decapitated:

>>> x = Decimal("NaN5357671565858315212612021522416387828577")
>>> y = 0
>>> x.quantize(y, watchexp=0)
Decimal('NaN8315212612021522416387828577')

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10650>
_______________________________________


More information about the Python-bugs-list mailing list