IsNumber

Tests whether a variable is or can be converted into a valid number.

Syntax:

IsNumber(x)

Parameters:

(s) x value to be tested

Returns:

(i) @TRUE if the data is or can be converted to a valid number;

 @FALSE if the data is not or cannot be converted to a valid number.

 

Use this function to test whether a variable can be converted into a valid number, either an integer or a floating point number.

Example:


A=IsNumber(4)
Message("Is 4 a number", A)
B=IsNumber("Hamburger")
Message('Is "Hamburger" a number', B)
C=IsNumber(4.5)
Message("Is 4.5 a number", C)
See Also:

IsFloat, IsInt,