Mathematical Operators |
|
Mathematical operators used in the Logic Template are operators that operate on the operands as mathematical values to produce mathematical results.
Six types of mathematical operators are supported:
Operator |
Description |
"-" |
The unary negation operator minus returns the operand multiplied by minus one. |
"-" |
The binary operator for subtraction returns the 1st operand minus the 2nd operand. |
"+" |
The binary operator for addition returns the 1st operand plus the 2nd operand. |
"*" |
The binary operator for multiplication returns the 1st operand multiplied by the 2nd operand. |
"/" |
The binary operator for integer division returns the result of the 1st operand divided by the 2nd operand and discards the remainder. |
"%" |
The binary operator for modular division returns the remainder of the 1st operand divided by the 2nd operand and discards the result. |