This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients docs@python, mark.dickinson
Date 2012-10-28.12:20:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351426853.23.0.197083736305.issue16348@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2012-10-28 12:20:53mark.dickinsonsetrecipients: + mark.dickinson, docs@python
2012-10-28 12:20:53mark.dickinsonsetmessageid: <1351426853.23.0.197083736305.issue16348@psf.upfronthosting.co.za>
2012-10-28 12:20:53mark.dickinsonlinkissue16348 messages
2012-10-28 12:20:53mark.dickinsoncreate