If I’m working with a double, and I convert it to a float, how does this work exactly? Does the value get truncated so it fits into a float? Or does the value get rounded differently? Sorry if this sounds a bit remedial, but I’m trying to grasp the concept of float and double conversions.
If I’m working with a double , and I convert it to a float
Share
From the Java Language Specification, section 5.1.3:
and section 4.2.4 says: