TypstDocumentation

int

Convert a value to an integer.

Example

#int(false) \
#int(true) \
#int(2.7) \
#{ int("27") + int("4") }
Preview

Parameters
Question mark

value
boolean or integer or float or string
RequiredPositional
Question mark

The value that should be converted to an integer.