[issue7048] decimal.py: logb: round the result if it is greater than prec
Raymond Hettinger
report at bugs.python.org
Wed Oct 7 19:04:41 CEST 2009
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Mike's response makes sense to me. If the precision is 2, the result
should round to that precision. The documents showing the theory behind
the decimal spec indicate that in general mathematical operations are
exact, only the results get rounded. Also IIRC, the use of
InvalidOperation is limited to the mathematical part, not the rounding step.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7048>
_______________________________________
More information about the Python-bugs-list
mailing list