IsFloat

Tests whether a variable can be converted to a floating point number.

Syntax:

IsFloat(x)

Parameters:

(s) x value to be tested.

Returns:

(i) @TRUE if the data can be converted to a floating point number;

 @FALSE if the data cannot be converted to a floating point number.

 

Use this function to test whether a variable can be converted into a floating point number.

Example:


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

IsInt, IsNumber