Function num::integer::gcd

source ·
pub fn gcd<T>(x: T, y: T) -> T
where T: Integer,
Expand description

Calculates the Greatest Common Divisor (GCD) of the number and other. The result is always positive.