[issue7048] decimal.py: logb: round the result if it is greater than prec

Stefan Krah report at bugs.python.org
Wed Oct 7 22:13:50 CEST 2009


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

precision:   34
maxExponent: 999999999
minExponent: -999999999
-- integer overflow in 3.61 or earlier
scbx164 scaleb  1E-999999999  -1200000000  -> NaN Invalid_operation
-- out of range
scbx165 scaleb  -1E-999999999  +1200000000  -> NaN Invalid_operation

I would say that this is implementation specific, as a workaround for
the overflow. This isn't in the spec at the moment.

----------

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


More information about the Python-bugs-list mailing list