posted 22 years ago
Compare the literals 0x1f and 1f
The compiler has to decide whether 0x1f is of type int or type float. A literal of type int can optionally start with 0x. A literal of type float cannot.
The compiler has to decide whether 1f is of type int or type float. A literal of type float ends with f. A literal of type int never ends with f.
It seems the compiler chooses the type that will work over the type that will not work.
[ July 07, 2003: Message edited by: Marlene Miller ]