Adding Operators
- Last UpdatedNov 30, 2023
- 1 minute read
The adding operators should have operands of the same type and returns a result of the same type as the operands. Integer constants are converted to decimal constants before the operation, if a decimal constant is included in the term.
|
Operator |
Operation |
Operand type |
Result type |
|---|---|---|---|
|
+ |
addition |
numeric |
same numeric |
|
- |
subtraction |
numeric |
same numeric |
|
& |
catenation |
string |
string |