Miscellaneous operators
Definition
The unary operator ABS is predefined for any numerical type.
The exponentiation operator ** is predefined for any integer-and floating-point type. The right operand (= exponent) is always of the predefined type integer .
The operator ABS
Operator | Operation | Operand type | Result type |
---|---|---|---|
ABS | absolute value | any numerical type | same type |
The operator **
Operator | Operation | Operand type (left) | Operand type (right) | Result type |
---|---|---|---|---|
** | exponentiation | any integer type | integer | same type as left operand |
any floating-point type | integer | same type as left operand |
Comment
Exponentiation with negative exponents is only possible if the left operand is a floating-point type.