tinymist_std::typst::foundations::calc

Function gcd

pub fn gcd(a: i64, b: i64) -> i64
Expand description

Calculates the greatest common divisor of two integers.

#calc.gcd(7, 42)