This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A float can comfortably accomodate a long (and of course an int) within its range.
From the JLS:
The following 19 specific conversions on primitive types are called the widening primitive conversions: � byte to short, int, long, float, or double � short to int, long, float, or double � char to int, long, float, or double � int to long, float, or double � long to float or double � float to double
[ December 12, 2006: Message edited by: Aniket Patil ]
SCJP 5.0 | SCWCD 1.4 <br /> <br />If you don't know where you are going, any road will take you there!