aboutsummaryrefslogtreecommitdiffstats
path: root/man/zdivmod.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-05 16:36:56 +0100
committerMattias Andrée <maandree@kth.se>2016-03-05 16:37:07 +0100
commit8237156ffb390b38c55863d1b14f246af8a1c19c (patch)
treefc631b36bbcbb14b21b4a6e56cdfe8ca595f3e3b /man/zdivmod.3
parentMakefile: add check rule (diff)
downloadlibzahl-8237156ffb390b38c55863d1b14f246af8a1c19c.tar.gz
libzahl-8237156ffb390b38c55863d1b14f246af8a1c19c.tar.bz2
libzahl-8237156ffb390b38c55863d1b14f246af8a1c19c.tar.xz
More detailed description of division and modulus
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man/zdivmod.3')
-rw-r--r--man/zdivmod.38
1 files changed, 6 insertions, 2 deletions
diff --git a/man/zdivmod.3 b/man/zdivmod.3
index b11b8b6..f0cd9e4 100644
--- a/man/zdivmod.3
+++ b/man/zdivmod.3
@@ -9,11 +9,11 @@ void zdivmod(z_t \fIquotient\fP, z_t \fIremainder\fP, z_t \fIdividend\fP, z_t \f
.fi
.SH DESCRIPTION
.B zdivmod
-calculates the quotient and the remainder of a
+calculates the truncated quotient and the remainder of a
.I dividend
and a
.IR divisor ,
-and stores the quotient in
+and stores the truncated quotient in
.I quotient
and the remainder in
.IR remainder .
@@ -38,6 +38,10 @@ except it is
safe to call
.B zdivmod with
.IR "(quotient==remainder)" .
+.P
+See
+.BR zmod (3)
+for details on modulation.
.SH RATIONALE
Calculating the remainder requires calculating division to
be performed, and performing a division gives the remainder