Arithmetic Computation Operator

The Arithmetic Computation Operator carries out an arithmetical operation between two numerical values or properties. The calculation result is saved in a new property. The Arithmetic Computation Operator can carry out the following operations:

Note: In the case of division, you can specify the rounding mode and decimal places.

Use

To calculate a price in a price plan, you can combine one of the Function components with the Arithmetic Computation Operator. The Arithmetic Computation Operator allows you to calculate numerous intermediate results that are saved in new properties; therefore, you can reuse these properties to calculate the final price by using a function component.

Example

In a price plan, the price of a telephone call is calculated by using the following basic formula:

Call price = Constant x Base price x Call Duration

"Base price" is a parameter in the offer and represents a price per minute. "Call Duration" is a numerical property. The generic function component, which is a "AXY + B" type formula, allows you to calculate "call price". However, for certain customers, a percentage-type discount that is saved as a parameter is applied to "Base price". To calculate the discount, you can insert an Arithmetic Computation Operator component before the generic function component as shown in the following table:

Step

Component

Calculation

1

Arithmetic Computation Operator

Discounted Price = Base price x Customer discount

2

Generic Function

Call price = Constant x Discounted Price x Call Duration

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

First Operand: Allows you to type a value or select the value of a numerical property.

Operator: Provides the list of arithmetical operators. Select one of the following operators:

Second Operand: Allows you to type a value or select the value of a numerical property.

Computed Property: Allows you to type the name of the new property that contains the result of the operation.

Rounding Mode: Provides the list of modes for rounding the decimal portion of the result. This list is available only if you select divided by in the Operator list. The default option is To the next greater value. Select one of the following rounding modes:

Scale: Provides the list of decimal places of the result. This list is available only if you select divided by in the Operator list.