Arithmetic operators (*, +, -, %, /, ^)

Arithmetic operators perform arithmetic operations, such as addition, subtraction, multiplication, division and to calculate power of one value raised to the power of other.

Syntax

= value1 OPERATOR value2

Arguments

value1

A number to be operated upon. The number can be specified as an integer (e.g., 37), a decimal value (e.g., 37.48), or as the value of a variable (e.g, UnitPrice)

value2

A number to be operated upon. The number can be specified as an integer (e.g., 37), a decimal value (e.g., 37.48), or as the value of a variable (e.g, UnitPrice)

Examples

Example

Returns

= 2 ^ 10

The value of 2 raised to the power of 10.

= UnitPrice + 10

The value of UnitPrice incremented by 10.

= UnitPrice * Quantity

The product of the value of UnitPrice and Quantity.