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@python components: Documentation messages: 174039 nosy: docs@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 <rep...@bugs.python.org> <http://bugs.python.org/issue16348> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com