Package ariba.util.core

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


            case NONNUMERIC :
                // if this is modified, please modify the getArithmeticOperations
                // in TypeChecker as well
                ops = getArithmeticOperations(v1Type);
                if (ops != null) {
                    return ops.divide(v1, v2);
                }
                return newReal(type, doubleValue(v1) / doubleValue(v2));
            case CUSTOMNUMERICTYPE:
                // support money/BigDecimal and
                // money/money as in getting percentage
View Full Code Here


                return newReal(type, doubleValue(v1) / doubleValue(v2));
            case CUSTOMNUMERICTYPE:
                // support money/BigDecimal and
                // money/money as in getting percentage
                ops = getArithmeticOperations(v1Type);
                return ops.divide(v1, v2);
            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.