Next: , Previous: Numeric Constants, Up: Numeric Types



3.3.2 Mixing Numeric Types

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