num::integer

Function gcd_lcm

Source
pub fn gcd_lcm<T>(x: T, y: T) -> (T, T)
where T: Integer,
Expand description

Calculates the Greatest Common Divisor (GCD) and Lowest Common Multiple (LCM) of the number and other.