We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff7ef94 commit 136dac2Copy full SHA for 136dac2
Doc/library/math.rst
@@ -248,7 +248,8 @@ Floating point arithmetic
248
249
.. function:: fmod(x, y)
250
251
- Return ``fmod(x, y)``, as defined by the platform C library. Note that the
+ Return the floating-point remainder of ``x / y``,
252
+ as defined by the platform C library function ``fmod(x, y)``. Note that the
253
Python expression ``x % y`` may not return the same result. The intent of the C
254
standard is that ``fmod(x, y)`` be exactly (mathematically; to infinite
255
precision) equal to ``x - n*y`` for some integer *n* such that the result has
0 commit comments