Code example for BigInteger

Methods: compareTo

0
    } 
 
    public int compareTo(SimpleBigDecimal val)
    { 
        checkScale(val);
        return bigInt.compareTo(val.bigInt);
    } 
 
    public int compareTo(BigInteger val)
    { 
        return bigInt.compareTo(val.shiftLeft(scale));
    } 
 
    public BigInteger floor()
    { 
        return bigInt.shiftRight(scale);
    } 
 
    public BigInteger round()
    { 
        SimpleBigDecimal oneHalf = new SimpleBigDecimal(ECConstants.ONE, 1);