diff options
| author | Richard M. Stallman | 2004-11-25 03:14:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-25 03:14:35 +0000 |
| commit | 5e859db984c1c4fe07efbd7d77a3588c86533829 (patch) | |
| tree | 893df812e5db79e1f962ac36cc48b83c4c2e5f49 | |
| parent | e50bc187485d059c00a5f6a61da7b563bba56a03 (diff) | |
| download | emacs-5e859db984c1c4fe07efbd7d77a3588c86533829.tar.gz emacs-5e859db984c1c4fe07efbd7d77a3588c86533829.zip | |
(Comparison of Numbers): Add eql.
| -rw-r--r-- | lispref/numbers.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lispref/numbers.texi b/lispref/numbers.texi index 3a4f4ae75c4..53435da081b 100644 --- a/lispref/numbers.texi +++ b/lispref/numbers.texi | |||
| @@ -308,6 +308,13 @@ This function tests whether its arguments are numerically equal, and | |||
| 308 | returns @code{t} if so, @code{nil} otherwise. | 308 | returns @code{t} if so, @code{nil} otherwise. |
| 309 | @end defun | 309 | @end defun |
| 310 | 310 | ||
| 311 | @defun eql value1 value2 | ||
| 312 | This function compares two floating point numbers like @code{=}, and | ||
| 313 | compares two integers like @code{=}, and acts like @code{eq} in all | ||
| 314 | other cases. Thus, @code{(eql 1.0 1)} returns @code{nil}, but | ||
| 315 | @code{(eql 1.0 1.0)} and @code{(eql 1 1)} both return @code{t}. | ||
| 316 | @end defun | ||
| 317 | |||
| 311 | @defun /= number-or-marker1 number-or-marker2 | 318 | @defun /= number-or-marker1 number-or-marker2 |
| 312 | This function tests whether its arguments are numerically equal, and | 319 | This function tests whether its arguments are numerically equal, and |
| 313 | returns @code{t} if they are not, and @code{nil} if they are. | 320 | returns @code{t} if they are not, and @code{nil} if they are. |