The functions in this section test whether the argument is a number or
whether it is a certain sort of number. The functions integerp
and floatp
can take any type of Lisp object as argument (the
predicates would not be of much use otherwise); but the zerop
predicate requires a number as its argument. See also
integer-or-marker-p
and number-or-marker-p
, in
section Predicates on Markers.
t
if so, nil
otherwise.
floatp
does not exist in Emacs versions 18 and earlier.
t
if so, nil
otherwise.
t
if so, nil
otherwise.
wholenump
predicate (whose name comes from the phrase
"whole-number-p") tests to see whether its argument is a nonnegative
integer, and returns t
if so, nil
otherwise. 0 is
considered non-negative.
t
if so, nil
otherwise. The argument must be a number.
These two forms are equivalent: (zerop x)
== (= x 0)
.
Go to the first, previous, next, last section, table of contents.