linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] fmod.3: add note how to obtain modulus/LPR
@ 2023-07-24 13:49 Jan Engelhardt
  2023-07-24 13:49 ` [PATCH 2/2] fmod.3: add example section Jan Engelhardt
  2023-07-28 20:26 ` [PATCH 1/2] fmod.3: add note how to obtain modulus/LPR Alejandro Colomar
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Engelhardt @ 2023-07-24 13:49 UTC (permalink / raw)
  To: alx; +Cc: linux-man

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
---
 man3/fmod.3 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/man3/fmod.3 b/man3/fmod.3
index ee2333fdc..a33b83eb5 100644
--- a/man3/fmod.3
+++ b/man3/fmod.3
@@ -58,6 +58,9 @@ is the quotient of
 /
 .IR y ,
 rounded toward zero to an integer.
+.PP
+To obtain the modulus, more specifically, the Least Positive Residue, the
+expression "fmod(fmod(x, y) + y, y)" needs to be used.
 .SH RETURN VALUE
 On success, these
 functions return the value \fIx\fP\ \-\ \fIn\fP*\fIy\fP,
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-13 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24 13:49 [PATCH 1/2] fmod.3: add note how to obtain modulus/LPR Jan Engelhardt
2023-07-24 13:49 ` [PATCH 2/2] fmod.3: add example section Jan Engelhardt
2023-07-28 20:26 ` [PATCH 1/2] fmod.3: add note how to obtain modulus/LPR Alejandro Colomar
2023-09-04 18:53   ` [PATCH v2 " Jan Engelhardt
2023-09-04 18:53     ` [PATCH v2 2/2] fmod.3: add example section Jan Engelhardt
2023-09-13 16:00       ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).