numberp expression number? expression
Returns true if the result of the expression is a number, otherwise returns false.
true
false
Example:
print number? 2 print number? "abc
Output:
True False
See also:
Type predicates
Table of Content