posted 22 years ago
Yes.
1/3 is 0 an int. An int is promoted to a float 1.0 without problems.
1.01 is a double literal, the same as 1.01D. double to float does not go without a cast. Use 1.01F or 1.01f instead.
-Barry
[ October 22, 2002: Message edited by: Barry Gaunt ]