Math387.Gcd Method

function Gcd(const X: Integer; const Y: Integer): Integer;

Greatest common divisor.

#NameTypeDescription
1XInteger
2YInteger

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

See Also: Math387.Lcm