Package ariba.util.core

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


            case NONNUMERIC :
                // if this is modified, please modify the getArithmeticOperations
                // in TypeChecker as well
                ArithmeticOperations ops = getArithmeticOperations(v1Type, v2Type);
                if (ops != null) {
                    return ops.substract(v1, v2);
                }
                return newReal( type, doubleValue(v1) - doubleValue(v2) );
            case CUSTOMNUMERICTYPE:
                ArithmeticOperations operations =
                        getArithmeticOperations(v1Type, v2Type);
View Full Code Here


                }
                return newReal( type, doubleValue(v1) - doubleValue(v2) );
            case CUSTOMNUMERICTYPE:
                ArithmeticOperations operations =
                        getArithmeticOperations(v1Type, v2Type);
                return operations.substract(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.