3.4.5 Adding operators

Adding operators perform addition (+) or subtraction (-).

Organization of this subsection
(1) Format
(2) Description
(3) Example of coding
(4) Notes

(1) Format

Additive expression

expression + expression

Subtractive expression

expression - expression

(2) Description

The adding operator performs normal arithmetic conversion for integer-type and float-type operands, according to the data type.

(3) Example of coding

MAIN
{
        ...
        sloop_cnt = sloop_cnt+1;
        sloop_cnt = sloop_cnt-1;
        ...
        ...
}

(4) Notes

The conversion processing provided by adding operators does not handle overflow and underflow. If the result of conversion by an adding operator cannot be represented with the data type of the operand, information may be lost.