Math387.Gcd Method

function Gcd(const X,Y: integer): integer; overload;

Greatest common divisor.

#NameTypeDescription
1Xinteger
2Yinteger

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

See Also: Math387.Lcm