summaryrefslogtreecommitdiffstats
path: root/math-integer.txi
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:06:40 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:06:40 -0800
commita69c9fb665459e2bfdbda1bf80741a0af31a7faf (patch)
treef0bc974f8805049e6b9a4e6864886298fbaa05a4 /math-integer.txi
parent4684239efa63dc1b2c1cbe37ef7d3062029f5532 (diff)
downloadslib-upstream/3b5.tar.gz
slib-upstream/3b5.zip
New upstream version 3b5upstream/3b5upstream
Diffstat (limited to 'math-integer.txi')
-rwxr-xr-x[-rw-r--r--]math-integer.txi20
1 files changed, 16 insertions, 4 deletions
diff --git a/math-integer.txi b/math-integer.txi
index b626a33..9999fb3 100644..100755
--- a/math-integer.txi
+++ b/math-integer.txi
@@ -30,9 +30,21 @@ is less than or equal to @var{k}; otherwise signals an error.
@end defun
-@defvar quotient
-@defvarx remainder
-@defvarx modulo
+@defun quotient n1 n2
+@defunx remainder n1 n2
+@defunx modulo n1 n2
are redefined so that they accept only exact-integer arguments.
-@end defvar
+@end defun
+
+
+@defun round-quotient n1 n2
+
+Returns the quotient of @var{n1} and @var{n2} rounded toward even.
+
+@example
+(quotient 3 2) @result{} 1
+(round-quotient 3 2) @result{} 2
+@end example
+@end defun
+