Is this a valid number?
validnump expression
validnum? expression
Returns true
if the result of expression is a number but not
"Not-a-Number" value neither an infinity, otherwise returns false
.
Example:
(print 5 validnum? 5)
(print 5/0 validnum? 5/0)
(print log -1 validnum? log -1)
Output:
5 True
Infinity False
NaN False
See also:
Table of Content