validnumber(
VALUE
)

The validnumber( function checks to see if a numeric value is valid.


Parameters

This function has one parameter:

value – floating point value or expression


Description

This function checks to see if a value is a valid number. What is an invalid number, you ask? Some examples would include anything divided by zero or the square root of a negative number.

validnumber(5/2) ☞ true
validnumber(5/0) ☞ false
validnumber(sqr(8)) ☞ true
validnumber(sqr(-8)) ☞ false

Note: The nan( function (short for not a number) is the opposite of validnumber(, it returns false if the value is valid, true if it is invalid.


See Also


History

VersionStatusNotes
10.0NewNew in this version