(minusp number)


Determine whether a value is a negative number.


This function determines negative numbers. If number is an integer or a real number and it has a negative value, the minusp function returns a T. Otherwise it returns a nil.

Examples

Code Returns
(minusp -2.4) T
(minusp 8.5) nil
(minusp -26) T

Tell me about...

(listp item)

(numberp item)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language