New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decimal.remainder_near documentation incorrect. #60552
Comments
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') |
Here's a doc patch. |
LGTM |
New changeset 1122f5bfc957 by Mark Dickinson in branch '2.7': New changeset 8570943ad5a2 by Mark Dickinson in branch '3.2': New changeset 9dc587378874 by Mark Dickinson in branch '3.3': New changeset 7b36ed59738c by Mark Dickinson in branch 'default': |
Thanks for reviewing, Andrew. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: