[New-bugs-announce] [issue16348] Decimal.remainder_near documentation incorrect.
Mark Dickinson
report at bugs.python.org
Sun Oct 28 13:20:53 CET 2012
New submission from Mark Dickinson:
The documentation for Decimal.remainder_near is incorrect. It states:
"If both are equally close, the one chosen will have the same sign as self."
That's incorrect: instead, the chosen remainder has the property that it makes the corresponding quotient even rather than odd. E.g.,
>>> Decimal(25).remainder_near(Decimal(10))
Decimal('5')
>>> Decimal(35).remainder_near(Decimal(10))
Decimal('-5')
----------
assignee: docs at python
components: Documentation
messages: 174039
nosy: docs at python, mark.dickinson
priority: normal
severity: normal
stage: needs patch
status: open
title: Decimal.remainder_near documentation incorrect.
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16348>
_______________________________________
More information about the New-bugs-announce
mailing list