Hi Helge, On Sun, Nov 17, 2024 at 10:46:25AM GMT, Helge Kreutzmann wrote: > Without further ado, the following was found: > > Issue: 372/360=1.xxxx => n=1 and thus as result 372-1*360=12 Why is this 348? Running this in a minimalistic c programm confirms the result to be 12 > > "The call I<fmod(372, 360)> returns 348." That was fixed in commit 346bb648cc963bd9f2c8b16d984cb49030faa05b Author: Alejandro Colomar <alx@xxxxxxxxxx> Date: Tue Jul 9 12:00:18 2024 +0200 fmod.3: EXAMPLES: Fix calculation Fixes: ce23e8188f8f ("fmod.3: Add example section") Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=219017> Reported-by: Benjamin Otte <otte@xxxxxxxxx> Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx> diff --git a/man/man3/fmod.3 b/man/man3/fmod.3 index d6c76c7a3..13e0f2e8c 100644 --- a/man/man3/fmod.3 +++ b/man/man3/fmod.3 @@ -170,7 +170,7 @@ .SH BUGS .SH EXAMPLES The call .I fmod(372, 360) -returns 348. +returns 12. .P The call .I fmod(-372, 360) If there's anything still bad in the page, please let me know. I hope it's fixed in the master branch. Cheers, Alex -- <https://www.alejandro-colomar.es/>
Attachment:
signature.asc
Description: PGP signature