CP6100 I/O Process Programming Manual
CPTEST
Operators
OPERATORS
CPTEST recognizes the following arithmetic operations:
+ (addition)
- (subtraction)
* (multiplication)
/ (division)
Operations are performed in the following sequence:
• Items in parentheses are evaluated first.
• Division and multiplication are performed.
• Addition and subtraction are performed.
• Operations of equal precedence are performed in the order
in which they are encounted, moving left to right.
Expressions
A general arithmetic expression is a sequence composed of numbers
and operators that evaluates to a positive integer. In CPTEST
commands that require a number, you can enter a general
arithmetic expression and have CPTEST evaluate it for you.
B-6