4.11.3 Operators and Functions
Operators
+
Addition
-
Subtraction
*
Multiplication
/
Division
(, )
Parenthesis
Arithmetical Function
MOD (S0, S1)
Remainder when S0 is divided by S1
POW (S0, S1)
Value of S0 multiplied by S1.
LOG10 (S)
Common logarithm of S
SQRT (S)
Square root of S
ABS (S)
Absolute value of S
PI( )
Pi (fixed value)
INT (S)
Integer portion of S
ROUND (S)
Round S to a whole number
FLOOR (S)
Round S down to a whole number
CEIL (S)
Round S up to a whole number
Difference among INT, ROUND, FLOOR and CEIL
S
INT (S)
1.5
1
1.4
1
-1.4
-1
-1.5
-1
Statistical Function
MAX(C,S)
Maximum value from S-number of results of numerical
calculation No.C
MIN(C,S)
Minimum value from S-number of results of numerical
calculation No.C
AVE(C,S)
Average of S-number of results of numerical
calculation No.C
SUM(C,S)
Sum of S-number of results of numerical calculation
No.C
SORT(C,S0,S1,S2)
S2th value when sorting S-number of numerical
calculation No.C in order of S1 condition
(0=descending, 1=ascending).
If denominator becomes "0", the calculation will be terminated and an error signal
(ERROR1) will be output.
Up to three parentheses can be used successionally. You cannot use four or
more of them successionally.
Correct: (((A+B)-C+D)+E), Wrong: ((((A+B)-C+D)+E)+F)
ROUND (S)
FLOOR (S)
2
1
1
1
-1
-2
-2
-2
e.g.) MOD (9,4) = 1
e.g.) POW (3, 2) = 9
e.g.) LOG10 (100) = 2
e.g.) SQRT (144) = 12
e.g.) ABS (-255) = 255
PI ( )= 3.142
e.g.) INT (-1.8) = -1
e.g.) ROUND (1.485) = 1
e.g.) FLOOR (1.485) = 1
e.g.) CEIL (-1.3) = -1
CEIL (S)
2
2
-1
-1
Example)
In the case of
CA000=10
CA001=5.8
CA002=3
MAX(0, 3) = 10
MIN(0, 3) = 3
AVE(0, 3) = 6.267
SUM (0, 3) = 18.8
SORT(0, 3, 1, 0)=3
The 0-th (smallest) value
of the ascendingly sorted
results of numerical
calculation No.0 to 2.
235