Bug 219017 - "The call fmod(372, 360) returns 348."
Summary: "The call fmod(372, 360) returns 348."
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-09 06:49 UTC by Benjamin Otte
Modified: 2024-07-09 10:06 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Benjamin Otte 2024-07-09 06:49:30 UTC
I believe it returns 12.

That's from the examples of the fmod man page.
Comment 1 Alejandro Colomar 2024-07-09 10:06:06 UTC
Hi!

Thanks for the report.  I've fixed it with the commit shown below.

Have a lovely day!
Alex

---

commit 346bb648cc963bd9f2c8b16d984cb49030faa05b (HEAD -> contrib, alx/contrib)
Author: Alejandro Colomar <alx@kernel.org>
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@gnome.org>
    Signed-off-by: Alejandro Colomar <alx@kernel.org>

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)

Note You need to log in before you can comment on or make changes to this bug.