From 40fd57964c125e28d2c8a8c56141106e6f65dea8 Mon Sep 17 00:00:00 2001 From: Joseph Martinot-Lagarde Date: Tue, 12 Nov 2024 18:22:50 +0100 Subject: [PATCH] Revert description modification for fmod Co-authored-by: Sergey B Kirpichev --- Doc/library/math.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 10430e2c79d857..bbbee40f3e32b7 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -273,10 +273,7 @@ Floating point arithmetic .. function:: fmod(x, y) - Return the remainder of division ``x / y``, - as defined by the platform C library function ``fmod(x, y)``. - - Note that the + Return ``fmod(x, y)``, as defined by the platform C library. 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