(numberp item)
Determine whether an item is a number.
This function tests item to see if it is a number-either a real number or an integer. If item is a number, a T is returned. If not, nil is returned.
Examples
Code | Returns |
---|---|
(numberp 8) | T |
(numberp 0.2653) | T |
(numberp '(5 3.2 6)) | nil |
(numberp "Name") | nil |