TypstDocumentation

calc.gcd

Calculate the greatest common divisor of two integers.

Example

#calc.gcd(7, 42)
Preview

Parameters
Question mark

calc.gcd() -> integer

a
integer
RequiredPositional
Question mark

The first integer.

b
integer
RequiredPositional
Question mark

The second integer.