|
| Previous: 2.6.2 Unary Operators | TOC | Index | Back | Next: 2.6.4 Sum Operators |
The operation A*B evaluates to the product of A and B. If A*B does not fit in a machine word, the result is undefined.
A/B results in the integral part of the quotient of A and B. The result is undefined if B is zero.
A MOD B evaluates to the difference between A and A./B.*B where A./B is an unsigned integer division and .* is an unsigned multiplication. Therefore, A MOD B is the division remainder of A./B. Like /, MOD leads to an undefined result if B=0.
All term operators respect the signs of both of their operands. Two equally signed operands yield a positive result and operands with different signs lead to a negative result.
However, the T3X language also provides some modified operators which work on unsigned values. Modified versions of the multiplication and division operator exist. Like all modified operators, they are prefixed with a dot `.'.
The operation A.*B evaluates to the product of the unsigned values .A and .B. A./B results in the integral part of the quotient of .A and .B.
The notation .X is used to denote the unsigned value of X.
| Previous: 2.6.2 Unary Operators | TOC | Index | Back | Next: 2.6.4 Sum Operators |