public BigInteger gcd (BigInteger val)

Returns a BigInteger whose value is the greatest common divisor of abs(this) and abs(val). Returns 0 if this == 0 && val == 0.

Parameters:
val    value with which the GCD is to be computed.

Returns:  GCD(abs(this), abs(val))