Function num_integer::gcd[][src]

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

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