Mixed data types

There are some subtle issues involved in the use of mixed data types with arithmetic operators.

Generally speaking, however, if you mix the integer types with the floating types, the integer values will be automatically converted to floating values and the arithmetic will be performed using floating arithmetic.

Floating arithmetic produces a floating result.