Package ariba.util.core

Examples of ariba.util.core.ArithmeticOperations.multiply()


            case NONNUMERIC:
                // if this is modified, please modify the getArithmeticOperations
                // in TypeChecker as well
                ops = getArithmeticOperations(v1Type);
                if (ops != null) {
                    return ops.multiply(v1, bigDecValue(v2));
                }
                else {
                    ops = getArithmeticOperations(v2Type);
                    if (ops != null) {
                        return ops.multiply(v2, bigDecValue(v1));
View Full Code Here


                    return ops.multiply(v1, bigDecValue(v2));
                }
                else {
                    ops = getArithmeticOperations(v2Type);
                    if (ops != null) {
                        return ops.multiply(v2, bigDecValue(v1));
                    }
                }
                return newReal(type, doubleValue(v1) * doubleValue(v2));
            case CUSTOMNUMERICTYPE:
                int t1 = getNumericType(v1), t2 = getNumericType(v2);
View Full Code Here

                return newReal(type, doubleValue(v1) * doubleValue(v2));
            case CUSTOMNUMERICTYPE:
                int t1 = getNumericType(v1), t2 = getNumericType(v2);
                ops = getArithmeticOperations(v1Type, v2Type);
                if (t1 > t2) {
                    return ops.multiply(v1, bigDecValue(v2));
                }
                else if (t2 > t1) {
                    return ops.multiply(v2, bigDecValue(v1));
                }
                // otherwise let the default case handle it
View Full Code Here

                ops = getArithmeticOperations(v1Type, v2Type);
                if (t1 > t2) {
                    return ops.multiply(v1, bigDecValue(v2));
                }
                else if (t2 > t1) {
                    return ops.multiply(v2, bigDecValue(v1));
                }
                // otherwise let the default case handle it
            default :
                return newInteger(type, longValue(v1) * longValue(v2));
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.