[/qb]<hr></blockquote>
you should know that
The largest decimal literal of type long is 9223372036854775808L( 2 ~63).
but The largest positive finite float literal is 3.4028235e38f.
notice the range,so we an assign long to float ,Conversion of an int or a long value to float, or of a long value to double,
may result in loss of precision�that is, the result may lose some of the least significant bits of the value. In this case, the resulting floating-point value will be a correctly rounded version of the integer value, using IEEE 754 round-to-nearest mode .
The largest decimal literal of type short is 2 ~15 -1.
so we can not assign int to short implicitly
[ April 03, 2006: Message edited by: Changchun Wang ]