The absolute value of self.

assert((-3).to_bi.abs == 3.to_bi)

Property definitions

gmp $ BigInt :: abs
    # 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
lib/gmp/gmp.nit:211,5--218,7