# HG changeset patch # User Richard M. Stallman # Date 1101352475 0 # Node ID 2a4a771d6699ecf03e819677284d839257ef0a85 # Parent 5ba4d96600d3be6720a561850f2cf5ba5d3f063a (Comparison of Numbers): Add eql. diff -r 5ba4d96600d3 -r 2a4a771d6699 lispref/numbers.texi --- 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.