-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-123811: test that round(Decimal) can return signed zero #124007
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
gh-123811: test that round(Decimal) can return signed zero #124007
Conversation
(Probably, can skip news.) The round() sphinx docs have extensive set of examples. Maybe we should add yet one: >>> round(-Decimal('3.75'), -1)
Decimal('-0E+1') ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…honGH-124007) (cherry picked from commit b46c65e) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
GH-124048 is a backport of this pull request to the 3.13 branch. |
…honGH-124007) (cherry picked from commit b46c65e) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
GH-124049 is a backport of this pull request to the 3.12 branch. |
Uh oh!
There was an error while loading. Please reload this page.