...
See the JLS, §5.1.3, "Narrowing Primitive Conversions," [JLS 2005], for more information.
Other Conversions
...
Note that conversions from float
to double
or from double
to float
can also lose information about the overall magnitude of the converted value (see rule NUM53-J. Use the strictfp modifier for floating-point calculation consistency across platforms for additional information).
...