posted 24 years ago
Rajani: Actually, operands are converted to int only if neither expression contains a long, float, or double. Since the expression here contains floats, they are left as floats. The general rule is, (to plagiarize the esteemed Mr. Brogden):
If either operand is double, the other converts to double, else
if either operand is float, the other converts to float, else
if either operand is long, the other converts to long, else
both convert to int.