TypstDocumentation

calc.odd

Determine whether an integer is odd.

Example

#calc.odd(4) \
#calc.odd(5) \
#range(10).filter(calc.odd)
Preview

Parameters
Question mark

calc.odd() -> boolean

value
integer
RequiredPositional
Question mark

The number to check for oddness.