Math Operators
PeopleCode uses standard mathematical operators:
-
+
Add
-
-
Subtract (or unary negative sign)
-
*
Multiply
-
/
Divide
-
**
Exponential
Exponentiation occurs before multiplication and division; multiplication and division occur before addition and subtraction. Otherwise, math expressions are evaluated from left to right. You can use parentheses to force the order of operator precedence.
The minus sign can also, of course, be used as a negation operator, as in the following expressions:
-10
- &NUM
- Product(&PERCENT_CUT, .01, SALARY)