coerce.toInt
This function converts the specified value to an int.
Syntax
coerce.toInt(value)
Arguments
Argument |
Type |
Description |
---|---|---|
value |
any |
The value to be coerced. |
Returns
Type |
Description |
---|---|
int |
The coerced int value |
Examples
The function coerce.toInt("333")
returns 333
.