TOINTEGER Function

Converts the argument to an integer value.

Category: String
Returned data type: Integer

Syntax

TOINTEGER(any)

Required Argument

any

specifies a value to convert to an integer

Examples

Example 1

if tointeger(counter)<= 5

setoutputslot(0)

else

setoutputslot(1)

Example 2

// 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

See Also

For rules and special considerations when you coerce types, see Coercion.