]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45584: Clarify `math.trunc` documentation (GH-29183)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 Apr 2022 22:30:59 +0000 (15:30 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Apr 2022 22:30:59 +0000 (15:30 -0700)
commit3031b867531009d270d5d7d3e53e739c4cba8816
tree9705f3f374e43b4f542befe64a5d4ffe4ee0422c
parent8d9a75b206d40b096d9a8f9bcc40d95b7687d6eb
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>
(cherry picked from commit ebbdbbff5d6840807e46ec61b8a323e94ee88de2)

Co-authored-by: Arthur Milchior <arthur@milchior.fr>
Doc/library/math.rst