tointeger( value )
Converts a value to Integer.
Keyword | Type | Description |
---|---|---|
|
Any Type |
Value to convert. |
Integer
The value parameter accepts decimal numbers. These are rounded to the nearest integer.
Values passed must be within the limits of the Integer data type (-2,147,483,647
to 2,147,483,647
).
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 return an Integer Array.
1
tointeger("3")
Returns 3
.
1
tointeger("3","4")
Returns {3,4}
.
1
tointeger({"3","4"})
Returns {3,4}
.
1
tointeger({1.49, 1.5, 1.51})
Returns {1, 2, 2}
.
1
tointeger({"1.49", "1.5", "1.99", "2", "2.01"})
Returns {1, 1, 1, 2, 2}
.
1
tointeger({"A", null, "1ABC2", 3})
Returns {null, null, 12, 3}
.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
tointeger() Function