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
booleanintegerfloatstringRequiredPositional
Question mark

The value that should be converted to an integer.