This compiles fine and f4.intValue() gives 10 as result, f5.floatValue() gives 1.0 as result. I fail to understand how the result is calculated. Is including e,f and d anywhere in the literal valid?

"1e1f" that's a float literal because of the "f" at the end. "1e1" that's the exponential notation and means 1 times (ten to the power of 1). Ten to the power of 1 is ten. So "1e1f" is 10.0. The integer part of 10.0 is 10.

I leave you to work out the other one. [ October 24, 2004: Message edited by: Barry Gaunt ]