
Paramacros
Chapter 20
20-5
Example 20.4
Mathematical Function Examples.
Expression Entered Result
SIN[90] 1.0
SQRT[16] 4.0
ABS[-4] 4.0
BIN[855] 357
BCD[357] 855
ROUND[12.5] 13.0
ROUND[12.49] 12.0
FIX[12.7] 12.0
FUP[12.2] 13.0
FUP[12.0] 12.0
LN[9] 2.197225
EXP[2] 7.389056
Important: Take precautions when performing calculations within the
brackets [] following a mathematical function. The operations within the
bracket are performed first, then the mathematical function is performed on
the result of the operation within the brackets. See Example 20.5.
Example 20.5
Precaution for Order Operation
N1#1=1.6; Parameter#1isset at1.6
N2#2=2.8;
Parameter #2 is setat 2.8
N3#3=ROUND[#1+#2];
Parameter #3 is setat 4.0
The values composing parameter #3 are added together first and then
rounded, not rounded and then added together.
Comentarios a estos manuales