tointeger() Function

Converts a value to Integer.

Syntax

tointeger( value, … )

Returns

Integer

value: (Any Type) Value to convert.

Notes

The value parameters also accept decimal numbers, which get rounded.

When operating on arrays, it is not necessary to use apply with tointeger. If multiple parameters are passed, or one parameter is an Array, tointeger will parameters return an Integer Array.

Values passed must remain within the limits of the Integer data type.

Examples

You can experiment with this function in the test box below.

Test Input

tointeger("3") returns 3

tointeger("3","4") and tointeger({"3","4"}) both return {3,4}

FEEDBACK