Skip to content

[3.9] bpo-45584: Clarify math.trunc documentation (GH-29183) #32272

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

Merged
merged 1 commit into from
Apr 2, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Apr 2, 2022

While floor/ceil 's documentation are very precise, truncate was not explained. I actually had to search online to understand the difference between truncate and floor (admittedly, once I remembered that numbers are signed, and that floating numbers actually uses a bit for negation symbol instead of two complement, it became obvious)

Co-authored-by: Alex Waygood [email protected]
Co-authored-by: Éric Araujo [email protected]
Co-authored-by: Terry Jan Reedy [email protected]
Co-authored-by: Jelle Zijlstra [email protected]
(cherry picked from commit ebbdbbf)

Co-authored-by: Arthur Milchior [email protected]

https://bugs.python.org/issue45584

While floor/ceil 's documentation are very precise, `truncate` was not explained. I actually had to search online to understand the difference between `truncate` and `floor` (admittedly, once I remembered that numbers are signed, and that floating numbers actually uses a bit for negation symbol instead of two complement, it became obvious)

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Éric Araujo <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit ebbdbbf)

Co-authored-by: Arthur Milchior <[email protected]>
@miss-islington
Copy link
Contributor Author

@Arthur-Milchior and @JelleZijlstra: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 6944258 into python:3.9 Apr 2, 2022
@miss-islington miss-islington deleted the backport-ebbdbbf-3.9 branch April 2, 2022 22:36
@miss-islington
Copy link
Contributor Author

@Arthur-Milchior and @JelleZijlstra: Status check is done, and it's a failure ❌ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants