The 'integerp' predicate function checks if an 'expr' is a integer number. T is returned if 'expr' is a integer number, NIL is returned otherwise.
(integerp 1) ; returns T - integer (integerp #x034) ; returns T - integer readmacro (integerp '1) ; returns T - still an integer (setq a 14) (integerp a) ; returns T - evaluates to int. (integerp 0) ; returns T - integer zero (integerp 1.2) ; returns NIL - float (integerp 0.0) ; returns NIL - float zero (integerp 'a) ; returns NIL - symbol (integerp #\a) ; returns NIL - character (integerp NIL) ; returns NIL - NIL (integerp #(0 1 2)) ; returns NIL - array
See the
integerp
predicate function in the