Converts the argument to an integer value.
Category: | String |
Returned data type: | Integer |
TOINTEGER(any)
any
specifies a value to convert to an integer
if tointeger(counter)<= 5
setoutputslot(0)
else
setoutputslot(1)
// Declare an integer variable to contain the integer value
integer intval
// Use the TOINTEGER function to populate the integer variable
intval=tointeger(3750.12345)
// Returns the value:
3750
For rules and special considerations when you coerce types, see Coercion.