Skip to content

Commit 136dac2

Browse files
StanFromIrelandpicnixz
authored andcommitted
pythongh-126719: Clarify math.fmod docs (pythonGH-127741)
(cherry picked from commit f28d471) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent ff7ef94 commit 136dac2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/math.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ Floating point arithmetic
248248

249249
.. function:: fmod(x, y)
250250

251-
Return ``fmod(x, y)``, as defined by the platform C library. Note that the
251+
Return the floating-point remainder of ``x / y``,
252+
as defined by the platform C library function ``fmod(x, y)``. Note that the
252253
Python expression ``x % y`` may not return the same result. The intent of the C
253254
standard is that ``fmod(x, y)`` be exactly (mathematically; to infinite
254255
precision) equal to ``x - n*y`` for some integer *n* such that the result has

0 commit comments

Comments
 (0)