7.7 Miscellaneous operators

7.7.1 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 .

7.7.2 The operator ABS

Operator

Operation

Operand type

Result type

ABS

absolute value

any numerical type

same type

7.7.3 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

7.7.3.1 Comment

Exponentiation with negative exponents is only possible if the left operand is a floating-point type.