diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-10-13 10:04:21 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-10-13 10:05:31 -0700 |
commit | 60d6e3fead4eca9e6da94d4a2a80ca196dc480c5 (patch) | |
tree | 89f12e4179888768a43c6a36371173810c2e5287 /src/fns.c | |
parent | 993116eec9a09555c0e725c4672863a1776bbd0f (diff) | |
download | emacs-60d6e3fead4eca9e6da94d4a2a80ca196dc480c5.tar.gz |
eql doc improvements
* doc/lispref/numbers.texi (Comparison of Numbers):
Copy some useful text from eql help string.
* src/fns.c (Feql): In doc string, say that eql also compares
integers by value.
Diffstat (limited to 'src/fns.c')
-rw-r--r-- | src/fns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c index 4003fe8a818..f50bf8ecb77 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2295,6 +2295,7 @@ The PLIST is modified by side effects. */) DEFUN ("eql", Feql, Seql, 2, 2, 0, doc: /* Return t if the two args are `eq' or are indistinguishable numbers. +Integers with the same value are `eql'. Floating-point values with the same sign, exponent and fraction are `eql'. This differs from numeric comparison: (eql 0.0 -0.0) returns nil and \(eql 0.0e+NaN 0.0e+NaN) returns t, whereas `=' does the opposite. */) |