-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-102823: Document return type of floor division on floats #102824
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-102823: Document return type of floor division on floats #102824
Conversation
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.
Indeed, information about mixed arithmetic is given above.
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.
Thanks!
Thanks @mdickinson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…thonGH-102824) (cherry picked from commit b72251d) Co-authored-by: Mark Dickinson <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
GH-109092 is a backport of this pull request to the 3.12 branch. |
GH-109093 is a backport of this pull request to the 3.11 branch. |
…thonGH-102824) (cherry picked from commit b72251d) Co-authored-by: Mark Dickinson <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…H-102824) (#109093) Co-authored-by: Mark Dickinson <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…H-102824) (#109092) gh-102823: Document return type of floor division on floats (GH-102824) (cherry picked from commit b72251d) Co-authored-by: Mark Dickinson <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
This PR documents the long-standing behaviour that the floor division operator
//
applied tofloat
operands returns a result of typefloat
.Also adds a missing note to the table to note that
x // y
isn't valid for complex numbers.