The TextToInteger function is a built-in function that converts Text t to an Integer value.

If t is outside the boundaries of the Integer values the function will return an Integer default value. To check if the conversion is possible you can use the TextToIntegerValidate function.

Input parameters

t: Text Type

Output parameters

Integer Type

Examples

Usage

Result

TextToIntegerValidate( "200" )

200

TextToIntegerValidate( "-200" )

-200

TextToIntegerValidate( "200.482" )

0

TextToIntegerValidate( "not a number" )

0

See Also

TextToIntegerValidate Function | Available Conversion Functions to Integer | Available Built-in Functions