Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


5.3 Arithmetic operations

In job definition scripts, a variable value is treated as characters unless it is declared explicitly in the -i option of the typeset command as the integer type. However, if you specify an operator used for an arithmetic operation in the let command or in (()), the values assigned to variables are treated as numeric values during the arithmetic operation.

JP1/Advanced Shell supports arithmetic operators, increment and decrement operators, bitwise logical operators, and assignment operators. The following describes the specifications common to all operators:

Organization of this section