Sum

Adds given operands.

Note: Only applies to data type long and double, which may be mixed.

Fields in the editor

Result
The field or variable to store the result.
Operands
The operands to be added to result.

The operands are converted to the data type of the result.

Side effects:

When converting to long, any fractional part is truncated. This table shows some examples:

Operand A Operand B Result
Long: 1 Long: 2 Long: 3
Double: 3
Long: 1 Double: 1,5 Long: 2
Double: 2,5
Double: 1,5 Double: 1,5 Long: 2
Double: 3