This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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!