BigNum:compare(x)

Compare a BigNum value to x. Returns 0 if the BigNum equals x, a negative number if the BigNum is less than x, or a positive number if the BigNum is greater than x.

Example

if x:compare(y) < 0 then
    error( "X must be >= Y", 0 )
end