

Datasets and Parameters › Process Parameters › Calculated Parameters › JavaScript Operators › Arithmetic Operators
Arithmetic Operators
JavaScript uses the following operators to combine integer values:
|
Operator
|
Description
|
|
*
|
Multiplication
|
|
/
|
Division
|
|
+
|
Addition or unary plus
|
|
-
|
Subtraction or unary minus
|
|
%
|
Modulo
|
|
++
|
Increment
|
|
--
|
Decrement
|
Arithmetic calculations in an expression follow algebraic rules:
- When an expression contains multiple arithmetic operators, multiplication and division are calculated first, then subtraction and addition.
- When operators are of the same order, they are calculated from left to right.
- You can use parentheses to change the precedence. Calculations inside parentheses are evaluated first. If parentheses are nested, the most deeply nested calculation has precedence.
Copyright © 2014 CA.
All rights reserved.
 
|
|