Math387::Gcd Function

int Gcd(const int X, const int Y);

Greatest common divisor.

#NameTypeDescription
1Xconst int
2Yconst int

Returns: the greatest common divisor of X and Y. X and Y must be positive integers.

See Also: Math387::Lcm
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler