int
Convert a value to an integer.
- Booleans are converted to
0
or1
. - Floats are floored to the next 64-bit integer.
- Strings are parsed in base 10.
Example
#int(false) \
#int(true) \
#int(2.7) \
#{ int("27") + int("4") }

ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
value
The value that should be converted to an integer.