
上QQ阅读APP看书,第一时间看更新
Mixed mode arithmetic
The arithmetic operation involving both integer and floating point numbers is called mixed mode arithmetic. When each operand is of a different data type, the resulting value is of the more general type, and float is the more general type.
The following screenshot will make it clearer for you:
