Operators - arithmetic – Metrohm tiamo 1.3 Manual User Manual
Page 56
30
General program functions
Rules of priority for operators
The operators are processed in the sequence in which they are listed in the follow-
ing table. It may be necessary to set operands in brackets to get the desired se-
quence.
Operators
^
*, /
Arithmetic
+, -
Compare
<, <=, >, >=
Logic AND,
OR
Operators - Arithmetic
Addition
Syntax
Operand1 + Operand2
The operands can either be entered directly or as a Variable and can be
of the type
Text
,
Number
or
Date/Time
.
Examples
Operand1 Operand2 Result
Example
Remarks
Both operands of the same type:
Number Number Number
1.2 + 3 = 4.2
-
Text Text Text
"Metrohm" + "AG" = "Metrohm
AG"
If the maximum permitted length
(65'536 characters) of the charac-
ter string is exceeded by the addi-
tion of the operands then the ex-
cess characters will be cut off by
the 2
nd
operand.
Time Time Time
Time(1998;04;06) +
Time(1964;02;03) = 59300.875
(for UTC+1)
Time()
: see function Time(Date)
Result: number of days calculated
since December 1899, dependent
on the system time
Operands of different types: the operand that does not correspond to the type of result is converted
to the particular result type before the operation.
Number Text
Text
1.2 + "Metrohm" =
"1.2Metrohm"
-
Text Number
Text
"Metrohm" + 1.2 =
"Metrohm1.2"
-
Number Time
Number
2.0 + Time(1999;11;7) =
36472.96
(for UTC+1)
Result: number of days calculated
since December 1899, dependent
on the system time