Math387.GcdInt64 Method

function GcdInt64(const X: Int64; const Y: Int64): Int64;

Greatest common divisor.

#NameTypeDescription
1XInt64
2YInt64

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

See Also: Math387.Lcm