https://github.com/python/cpython/commit/98d3f2bc6e2b944f5fba1e16b0ca7f64459aa5e5
commit: 98d3f2bc6e2b944f5fba1e16b0ca7f64459aa5e5
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2025-01-04T17:45:19Z
summary:

[3.12] gh-126719: Clarify math.fmod docs (GH-127741) (#128492)

(cherry picked from commit f28d471fbe99f9eaac05d60ed40da47b0b56fe86)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>

files:
M Doc/library/math.rst

diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index fb8527128a2555..0648293bfa7b89 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -84,7 +84,8 @@ Number-theoretic and representation functions
 
 .. function:: fmod(x, y)
 
-   Return ``fmod(x, y)``, as defined by the platform C library. Note that the
+   Return the floating-point remainder of ``x / y``,
+   as defined by the platform C library function ``fmod(x, y)``. Note that the
    Python expression ``x % y`` may not return the same result.  The intent of 
the C
    standard is that ``fmod(x, y)`` be exactly (mathematically; to infinite
    precision) equal to ``x - n*y`` for some integer *n* such that the result 
has

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to