If self contains a BigInt, return the corresponding BigInt

assert("123".to_bi == 123.to_bi)
assert("-123".to_bi == -123.to_bi)

Property definitions

gmp :: gmp $ Text :: to_bi
    # If `self` contains a BigInt, return the corresponding BigInt
    #
    #     assert("123".to_bi == 123.to_bi)
    #     assert("-123".to_bi == -123.to_bi)
    fun to_bi: BigInt do
        assert is_bi
        var tmp = new NativeMPZ
        tmp.set_str(self.to_cstring, 10i32)
        return new BigInt(tmp)
    end
lib/gmp/gmp.nit:67,5--76,7