TypstDocumentation

ceil

Round a number up to the nearest integer.

If the number is already an integer, it is returned unchanged.

Example

#assert(calc.ceil(3.14) == 4)
#assert(calc.ceil(3) == 3)
#calc.ceil(500.1)
Preview

Parameters
Question mark

value
integerfloatRequiredPositional
Question mark

The number to round up.