gmp :: BigInt :: gcd
self
i
assert(15.to_bi.gcd(10.to_bi) == 5.to_bi)
# Returns the greatest common divisor of `self` and `i` # # assert(15.to_bi.gcd(10.to_bi) == 5.to_bi) fun gcd(i: BigInt): BigInt do var res = new NativeMPZ val.gcd(res, i.val) return new BigInt(res) end