Hitachi

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


18.4.2 Unary plus

The unary plus is a unary operator that returns the positive value of the result of the expression.

Organization of this subsection

(1) Format

+[(]expression[)]

(2) Description

The operand for the unary plus operator (+) must be arithmetic type. The unary operator is placed before an operand, linking from the right to the left.

Specifying the positive unary operator for a negative value will return a negative value. Specifying the negative operator for a negative value will return a positive value.

(3) Example of coding

const integer NG_END = +1;         // Statement in the DEFINE section
sloopcnt = +(sloopmin - sloopmax); // Statement in the MAIN section