company logo

arithmetical operation

Arithmetical operations perform type specific type operations on the one or two operands involved. The way arithmetical operands operate on the two operands depends on the type of the first (left) operand. Thus, arithmetical operands applied on collections operate differently from arithmetical operands applied on numbers.

Unsupported operations return an empty value of the type of the left operand. When data types are not compatible, the right operand is converted into the type of the left operand.

Generalisations:  operationoperation typetype operation

Related topics