TypstDocumentation

calc.log

Calculate the logarithm of a number.

If the base is not specified, the logarithm is calculated in base 10.

Example

#calc.log(100)
Preview

Parameters
Question mark

value
integer or float
RequiredPositional
Question mark

The number whose logarithm to calculate. Must be strictly positive.

base

The base of the logarithm. May not be zero.

Default: 10.0