Code example for BigDecimal

Methods: multiply

0
        protected Number mod(Number num0, Number num1) {
            return new Double(num0.doubleValue() % num1.doubleValue());
        } 
 
        protected Number multiply(Number num0, Number num1) {
            return ((BigDecimal) num0).multiply((BigDecimal) num1);
        } 
 
        public boolean matches(Object obj0, Object obj1) {
            return (obj0 instanceof BigDecimal || obj1 instanceof BigDecimal);
        } 
    } 
 
    public final static class BigIntegerDelegate extends ELArithmetic { 
 
        protected Number add(Number num0, Number num1) {
            return ((BigInteger) num0).add((BigInteger) num1);
        } 
 
        protected Number coerce(Number num) {
            if (num instanceof BigInteger)