summaryrefslogtreecommitdiff
path: root/lispref/numbers.texi
diff options
context:
space:
mode:
authorMelissa Weisshaus <melissa@gnu.org>1995-06-16 19:17:59 +0000
committerMelissa Weisshaus <melissa@gnu.org>1995-06-16 19:17:59 +0000
commitbda144f49f2ba0f467054530a21e39ec7b7575fa (patch)
treed9656e42c1146edc1ebab8152375ee8772b44944 /lispref/numbers.texi
parentb7011339a202da06ec2ba58b11618692ea8f0326 (diff)
updates for version 19.29 made by melissa; also needed to check out files
so two-volume formatting could be accomplished.
Diffstat (limited to 'lispref/numbers.texi')
-rw-r--r--lispref/numbers.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/numbers.texi b/lispref/numbers.texi
index 7b6ef86814..e2077955df 100644
--- a/lispref/numbers.texi
+++ b/lispref/numbers.texi
@@ -478,8 +478,10 @@ If you divide by 0, an @code{arith-error} error is signaled.
(@xref{Errors}.)
@example
+@group
(/ 6 2)
@result{} 3
+@end group
(/ 5 2)
@result{} 2
(/ 25 3 2)
@@ -541,16 +543,26 @@ quotient to compute the remainder.
An @code{arith-error} results if @var{divisor} is 0.
@example
+@group
(mod 9 4)
@result{} 1
+@end group
+@group
(mod -9 4)
@result{} 3
+@end group
+@group
(mod 9 -4)
@result{} -3
+@end group
+@group
(mod -9 -4)
@result{} -1
+@end group
+@group
(mod 5.5 2.5)
@result{} .5
+@end group
@end example
For any two numbers @var{dividend} and @var{divisor},