gmp :: BigInt :: abs
self
assert((-3).to_bi.abs == 3.to_bi)
# The absolute value of `self`. # # assert((-3).to_bi.abs == 3.to_bi) fun abs: BigInt do var res = new NativeMPZ val.abs res return new BigInt(res) end