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
doc: remove a misleading statement. #98093
doc: remove a misleading statement. #98093
Conversation
Thank you, I saw your commit, but for the sake of concreteness, I suggest adding in parentheses that the result from the division will be rounded down (i guess that sounds simple enough, right?) |
|
Yes, you’re right, each division returns a float number |
TIL about using floats on floor divisions.
That's right for
I'm puzzeled about
Clearly not the kind of info I do want to see in the tutorial :D |
Thanks @JulienPalard for the PR |
Sorry @JulienPalard, I had trouble checking out the |
GH-98141 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit 571e23d) Co-authored-by: Julien Palard <julien@palard.fr>
Thanks @JulienPalard for the PR |
GH-98142 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit 571e23d) Co-authored-by: Julien Palard <julien@palard.fr>
(cherry picked from commit 571e23d) Co-authored-by: Julien Palard <julien@palard.fr>
(cherry picked from commit 571e23d) Co-authored-by: Julien Palard <julien@palard.fr>
(cherry picked from commit 571e23d) Co-authored-by: Julien Palard <julien@palard.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Fixing an issue reported by Alexandr Mezhelovskiy on a moderated message¹ on the docs@ mailing list.
1: the message contained no text body.
The
discarding any fractional result
part was misleading for negative number, where-7.1 // 1 == -8
, as properly explained behind the:term:`floor division`
link.Alexandr proposed to replace the statement with:
But it's a tutorial and should be kept simple, the goal of this paragraph is just to teach user there's two discting division operators.
For the user in need or more information, the link to the glossary already provides a precise explanation with examples.