Code example for BigInteger

Methods: multiply

0
    } 
 
    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)
    { 
        checkScale(b);
        BigInteger dividend = bigInt.shiftLeft(scale);
        return new SimpleBigDecimal(dividend.divide(b.bigInt), scale);
    } 
 
    public SimpleBigDecimal divide(BigInteger b)