gcd

fun gcd(val: BigInteger): BigInteger

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

Return

GCD(absoluteValue(this), absoluteValue(val))

Parameters

val

value with which the GCD is to be computed.