Operators - arithmetic, Addition – Metrohm tiamo 1.1 Manual User Manual
Page 60

32
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 character string is ex-
ceeded by the addition of the
operands then the excess
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 calcu-
lated 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"
-