IsInt

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

Syntax:

IsInt(x)

Parameters:

(s) x value to be tested.

Returns:

(i) @TRUE if the data is or can be converted to a valid integer; @FALSE if the data is not or cannot be converted to a valid integer.

 

Use this function to test whether a variable can be converted into a valid integer.

Example:


A=IsInt(4)
Message("Is 4 an integer", A)
B=IsInt("Hamburger")
Message('Is "Hamburger" an integer', B)
C=IsInt(4.5)
Message("Is 4.5 an integer", C)
See Also:

IsFloat, IsNumber