Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

integerp

integerp

type: predicate function (subr)
location: built-in
source file: xlbfun.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(integerp <expr> )
        <expr>          -       the expression to check

DESCRIPTION

The INTEGERP predicate checks if an <expr> is a integer number. T is returned if <expr> is a integer number, NIL is returned otherwise.

EXAMPLES

(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 


Go to the first, previous, next, last section, table of contents.