Greatest common divisor of two integers.
Zero is treated as the identity element: gcd(0, x) = gcd(x, 0) = x
The sign of the result is essentially random for negative inputs.
The first integer.
The second integer.
The largest integer that divides a and b.
Greatest common divisor of two integers.
Zero is treated as the identity element: gcd(0, x) = gcd(x, 0) = x
The sign of the result is essentially random for negative inputs.