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.

plusp

plusp

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

SYNTAX

(plusp <expr> )
        <expr>          -       the numeric expression to check

DESCRIPTION

The PLUSP predicate checks to see if the number <expr> is positive. T is returned if the number is positive (greater than 0), NIL is returned otherwise. A bad argument type error is generated if the <expr> is not a numeric expression.

EXAMPLES

(plusp 0)                               ; returns NIL
(plusp 1)                               ; returns T
(plusp -1)                              ; returns NIL
(plusp #xFFFFFFFF)                      ; returns NIL
(plusp #x0FFFFFFF)                      ; returns T
                                        ;
(plusp 'a)                              ; error: bad argument type
(setq a 4)                              ; set value of A to 4
(plusp a)                               ; returns T


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