Adding operators
Definition
The addition operators + and - are predefined in their known meaning for every numerical type.
The concatenation operator & is predefined for any one-dimensional array type.
Overview
| Operator | Operation | Operand type (left) | Operand type (right) | Result type |
|---|---|---|---|---|
| + | Addition | any numerical type | same type | same type |
| - | Subtraction | any numerical type | same type | same type |
| & | Chaining (Concatenation) | any array type | same array type | same array type |
| any array type | element type | same array type | ||
| element type | any array type | same array type | ||
| element type | element type | any array type |
Additional information
The prefixes + and - are predefined for any numerical type.
According to the priority rules for expressions a prefix operand must not follow multiplication operators, the exponentiation operator ** or the operators ABS and NOT .
The following expressions are syntactically wrong:
- A / +B
- A ** -B
Expressions of the following form, however, are permitted:
- A / (+B)
- A ** (-B)