We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b1756 commit d74ff26Copy full SHA for d74ff26
Doc/library/math.rst
@@ -186,7 +186,10 @@ Number-theoretic and representation functions
186
187
.. function:: fmod(x, y)
188
189
- Return ``fmod(x, y)``, as defined by the platform C library. Note that the
+ Return the remainder of division ``x / y``,
190
+ as defined by the platform C library function ``fmod(x, y)``.
191
+
192
+ Note that the
193
Python expression ``x % y`` may not return the same result. The intent of the C
194
standard is that ``fmod(x, y)`` be exactly (mathematically; to infinite
195
precision) equal to ``x - n*y`` for some integer *n* such that the result has
0 commit comments