Converts an argument value to an integer.
Conversion
toInteger(<parameter>)
Parameter | Description |
---|---|
string | converts the string value as an integer |
dateTime | converts the date as the number of milliseconds (epoch milliseconds) |
decimal | converts into integer by removing the decimal part (example: 1.5 becomes 1) |
boolean | converts the boolean value as 1 if true, 0 if false |
toInteger(<dateTime>)
toInteger(<decimal>)
toInteger(<integer>)
toInteger(<string>)
toInteger(<boolean>)
Return an integer.
toInteger("4")
Returns 4.