You are here: Symbol Reference > Math387 Namespace > Functions > Math387.Gcd Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.Gcd Function

Greatest common divisor.

Pascal
function Gcd(const X: integer; const Y: integer): integer;

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

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!