You can freely intermix numeric types in expressions. When intermixed,
values are promoted to the “highest" type in the expression.
In general, this promotion follows a simple hierarchy: double
is
highest, int
comes next, and count
is lowest. (Note that
bool
is not a numeric type.)