changeset 58499:2a4a771d6699

(Comparison of Numbers): Add eql.
author Richard M. Stallman <rms@gnu.org>
date Thu, 25 Nov 2004 03:14:35 +0000
parents 5ba4d96600d3
children 6f8c0631e5aa
files lispref/numbers.texi
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/numbers.texi	Thu Nov 25 03:13:50 2004 +0000
+++ b/lispref/numbers.texi	Thu Nov 25 03:14:35 2004 +0000
@@ -308,6 +308,13 @@
 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.