Code example for BigInteger

Methods: subtract

0
        return add(b.negate());
    } 
 
    public SimpleBigDecimal subtract(BigInteger b)
    { 
        return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)),
                scale);
    } 
 
    public SimpleBigDecimal multiply(SimpleBigDecimal b)
    { 
        checkScale(b);
        return new SimpleBigDecimal(bigInt.multiply(b.bigInt), scale + scale);
    } 
 
    public SimpleBigDecimal multiply(BigInteger b)
    { 
        return new SimpleBigDecimal(bigInt.multiply(b), scale);
    } 
 
    public SimpleBigDecimal divide(SimpleBigDecimal b)