(wrong string) ≠ qd + r, that would just complicate things || Mattias Andrée

From: <git_AT_suckless.org>
Date: Mon, 9 May 2016 22:48:07 +0200 (CEST)

commit f0aa2f671e01ce36c98f55718cb2ca62c69ac55a
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Mon May 9 22:47:17 2016 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Mon May 9 22:47:17 2016 +0200

    n ≠ qd + r, that would just complicate things
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/man/zdivmod.3 b/man/zdivmod.3
index f0cd9e4..7e486d4 100644
--- a/man/zdivmod.3
+++ b/man/zdivmod.3
_AT_@ -30,6 +30,34 @@ gets
 Mod
 .IR divisor .
 .P
+Be aware,
+.I remainder
+gets
+.RI | dividend |
+Mod
+.RI | divisor |,
+this means that it is only guaranteed to be true that
+.I dividend
+=
+.I quotient
+⋅
+.I divisor
++
+.IR remainder
+if
+.I dividend
+and
+.I divisor
+have the same sign.
+It is up to the user, to make the necessary adjustment to
+.I remainder
+to make this true or to satisfy any desired property. This
+exceptional behaviour has been choosen because it is the
+simplies, works just fine if you are working with natural
+numbers only, and there are two many ways to define
+modulus; this one is advantages when you want to make
+adjustments, it is straight-forward.
+.P
 It is safe to call
 .B zdivmod
 with non-unique parameters,
Received on Mon May 09 2016 - 22:48:07 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 23:00:25 CEST