Crate gcd[−][src]
Expand description
Calculates a Greatest Common Divisor (GCD).
assert_eq!(2, gcd::gcd(10, 2)); assert_eq!(1, gcd::gcd(10, 3)); assert_eq!(14, gcd::gcd(56, 42));
Functions
gcd | Calculates a Greatest Common Divisor (GCD). |
Calculates a Greatest Common Divisor (GCD).
assert_eq!(2, gcd::gcd(10, 2)); assert_eq!(1, gcd::gcd(10, 3)); assert_eq!(14, gcd::gcd(56, 42));
gcd | Calculates a Greatest Common Divisor (GCD). |