COMPUTE

Reference

Syntax

[COMPUTE] result = { [+|-] operand1
                     [{+|-|*|/|DIV|MOD|**} [+|-] operand2
                     [{+|-|*|/|DIV|MOD|**} [+|-] operand3
                     ... ]] }
                 | { [BIT-NOT] operand1
                     [{BIT-AND|BIT-OR|BIT-XOR} [BIT-NOT] operand2
                     [{BIT-AND|BIT-OR|BIT-XOR} [BIT-NOT] operand3
                     ...  ]] }.


Effect

Calculates an arithmetic expression made up of a sign (+, -), operands operand1, operand2, ... and arithmetic operators (+, -, *, /, DIV, MOD, **) or a bit expression made up of a negation operator (BIT-NOT), operands operand1, operand2, ... and bit operators (BIT-AND, BIT-OR, BIT-XOR) and assigns the result to result .