]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45584: Clarify `math.trunc` documentation (GH-29183)
authorArthur Milchior <arthur@milchior.fr>
Sat, 2 Apr 2022 22:11:20 +0000 (00:11 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Apr 2022 22:11:20 +0000 (15:11 -0700)
commitebbdbbff5d6840807e46ec61b8a323e94ee88de2
tree19390e3ce150e385d1fad9e7a13ebfa871457667
parent1f80dcd2442f2a354097797fedc077592984903b
bpo-45584: Clarify `math.trunc` documentation (GH-29183)

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 <Alex.Waygood@Gmail.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/math.rst