Arithmetic operators, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual
Page 183

ND 2100G GAGE-CHEK
183
2.4 F
o
rm
ulas
Arithmetic operators
Arithmetic operators are used to add, subtract, multiply and divide.
The use of arithmetic operators in ND 2100G formulas is consistent
with the use of arithmetic operators generally.
Order of arithmetic evaluation
The order of evaluation of a collection of terms follows generally
accepted practice:
Insert arithmetic operators into formulas as required by the
application.
To insert arithmetic operators:
U
Press the +-*/... soft key
U
Press the dimension key for the arithmetic operator you would like
to insert
Arithmetic operators are combined with constants and variables to
define dimensions:
Parentheses
Parentheses are used to group terms within a formula for convenience
and to improve readability. Grouped terms enclosed by parentheses
are evaluated first and treated as a single term by the formula.
Parentheses control the order of evaluation and make complex
formulas easier to construct and read.
Evaluation
Arithmetic
First
Terms in parentheses, innermost first
Second
Exponentiation
Third
Multiplication and division
Fourth
Addition and subtraction
Addition in a formula.
Operator
Example
Addition
A = C1+C2
Subtraction
B = 10-C1
Division
C = C1/1.5
Multiplication
D = 2*Pi*C1
Parentheses must be used in opposing pairs. When a
formula construction is complete, verify that the number
of open parentheses equals the number of closed
parentheses. Unmatched parentheses will generate
formula error messages.