gcd method

Returns the greatest common divisor of the absolute value of this integer and the absolute value of other.

int gcd(
int other
)

Returns the greatest common divisor of the absolute value of this integer and the absolute value of other.

Both this and other must be non-zero.