TypstDocumentation

mod

Calculate the modulus of two numbers.

Example

#calc.mod(20, 6) \
#calc.mod(1.75, 0.5)
Preview

Parameters
Question mark

dividend
integerfloatRequiredPositional
Question mark

The dividend of the modulus.

divisor
integerfloatRequiredPositional
Question mark

The divisor of the modulus.