Multiplying operators
Definition
The multiplying operators * and / are predefined in their meaning for every integer- and floating-point type.
The operators MOD and REM are predefined for any integer type.
The result of every operation is of the same type as the operands (which are also of the same type).
Overview 1
Operator | Operation | Operand type (left) | Operand type (right) | Result type |
---|---|---|---|---|
* | Multiplication | any integer type | same type | same type |
any floating- point type | same type | same type | ||
/ | Division | any integer type | same type | same type |
any floating-point type | same type | same type | ||
MOD | Modulo | any integer type | same type | same type |
REM | Remainder | any integer type | same type | same type |
Additional information
The operators * and / are predefined for any physical type.
Overview 2
Operator | Operation | Operand type (left) | Operand type (right) | Result type |
---|---|---|---|---|
* | Multiplication | any physical type | integer | same type as left operand |
any physical type | real | same type as left operand | ||
integer | any physical type | same type as right operand | ||
real | any physical type | same type as right operand | ||
/ | Division | any physical type | integer | same type as left operand |
any physical type | real | same type as left operand | ||
any physical type | same type | universal integer |