posted 22 years ago
The logic behind the long->float promotion is that within a float, you can represent the order of magnitude of *every* possible long, although at the cost of some precision if you have a very big long.
i.e, Long.MAX_VALUE = 9223372036854775807
(float) Long.MAX_VALUE = 9.223372e18
[ January 09, 2002: Message edited by: Rob Ross ]