function Gcd(const X: Integer; const Y: Integer): Integer;
Greatest common divisor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Integer | |
| 2 | Y | Integer |
Returns: Int32 - the greatest common divisor of X and Y. X and Y must be positive integers.
See Also: Math387.Lcm
Greatest common divisor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Integer | |
| 2 | Y | Integer |
Returns: Int32 - the greatest common divisor of X and Y. X and Y must be positive integers.