TypstDocumentation

abs

Calculate the absolute value of a numeric value.

Example

#calc.abs(-5) \
#calc.abs(5pt - 2cm) \
#calc.abs(2fr)
Preview

Parameters
Question mark

value
integerfloatlengthangleratiofractionRequiredPositional
Question mark

The value whose absolute value to calculate.