aboutsummaryrefslogtreecommitdiffstats
path: root/lispref/numbers.texi
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2004-11-25 03:14:35 +0000
committerRichard M. Stallman <[email protected]>2004-11-25 03:14:35 +0000
commit5e859db984c1c4fe07efbd7d77a3588c86533829 (patch)
tree893df812e5db79e1f962ac36cc48b83c4c2e5f49 /lispref/numbers.texi
parente50bc187485d059c00a5f6a61da7b563bba56a03 (diff)
(Comparison of Numbers): Add eql.
Diffstat (limited to 'lispref/numbers.texi')
-rw-r--r--lispref/numbers.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/lispref/numbers.texi b/lispref/numbers.texi
index 3a4f4ae75c..53435da081 100644
--- a/lispref/numbers.texi
+++ b/lispref/numbers.texi
@@ -308,6 +308,13 @@ This function tests whether its arguments are numerically equal, and
returns @code{t} if so, @code{nil} otherwise.
@end defun
+@defun eql value1 value2
+This function compares two floating point numbers like @code{=}, and
+compares two integers like @code{=}, and acts like @code{eq} in all
+other cases. Thus, @code{(eql 1.0 1)} returns @code{nil}, but
+@code{(eql 1.0 1.0)} and @code{(eql 1 1)} both return @code{t}.
+@end defun
+
@defun /= number-or-marker1 number-or-marker2
This function tests whether its arguments are numerically equal, and
returns @code{t} if they are not, and @code{nil} if they are.