FunctionCopy link to clipboard
tointeger( value )
Converts a value to Integer.
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Any Type |
Value to convert. |
ReturnsCopy link to clipboard
Integer
Usage considerationsCopy link to clipboard
Using the value parameterCopy link to clipboard
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
).
Using tointeger() with arraysCopy link to clipboard
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.
ExamplesCopy link to clipboard
Convert a string to an integerCopy link to clipboard
1
tointeger("3")
Copy
Returns 3
.
Convert a list of strings to a list of integersCopy link to clipboard
1
tointeger("3","4")
Copy
Returns {3,4}
.
1
tointeger({"3","4"})
Copy
Returns {3,4}
.
Convert a list of decimals to a list of integersCopy link to clipboard
1
tointeger({1.49, 1.5, 1.51})
Copy
Returns {1, 2, 2}
.
Convert a list of decimal strings to a list of integersCopy link to clipboard
1
tointeger({"1.49", "1.5", "1.99", "2", "2.01"})
Copy
Returns {1, 1, 1, 2, 2}
.
Convert a list of variant to a list of integersCopy link to clipboard
1
tointeger({"A", null, "1ABC2", 3})
Copy
Returns {null, null, 12, 3}
.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
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 | |
Process Autoscaling | Compatible |
FeedbackCopy link to clipboard
Was this page helpful?