Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


18.4.5 Adding operators

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

Organization of this subsection

(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.