diff options
Diffstat (limited to 'man/zmod.3')
| -rw-r--r-- | man/zmod.3 | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -24,22 +24,15 @@ Mod .P The result .RI ( remainder ) -is always non-negative. To be more precise, -a Mod b = |a| Mod |b| for all integers a +is negative if and only if the +.I dividend +is negative. To be more precise, +a Mod b = (|a| Mod |b|) sgn a for all integers a and b. .P It is safe to call .B zmod with non-unique parameters. -.SH RATIONALE -There are many ways to define modulus with -negative integers. You have to select how the -signness is selected, and when to invert -(in respect to modulated addition) the remainder. -The simplest way to implement modulus is to -ignore the sign of the operands. This solution -also makes it very easy for those that which -to write a wrapper that changes the definition. .SH SEE ALSO .BR zdivmod (3), .BR zstr (3), |
