545 B
545 B
6.1. Arithmetic Conversions
When describing an arithmetic operator in AVAP and using the phrase "numeric arguments are converted to a common type," it means that the operator's implementation for built-in types works as follows:
- If either of the arguments is a complex number, the other is converted to complex.
- Otherwise, if either of the arguments is a floating-point number, the other is converted to floating-point.
- Otherwise, both must be integers, and no conversion is needed.
Additional rules may apply for certain operators.