public static gcd<INT_TYPE extends AbstractInt>(left as INT_TYPE, right as INT_TYPE) as INT_TYPE
Computes the non-negative greatest common divisor of two integers.
| Parameter | Description |
|---|---|
left | The first integer. |
right | The second integer. |
The greatest common divisor, or zero if both inputs are zero.
assert Math.gcd(42, 30) == 6