You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Widening conversions are the safest because they usually do not lose information. They are called widening conversions because they go from one data type to another type that uses an equal or greater amount of space to store the value.
23
+
- All widening conversions that go from an integer type to another integer type, or from a floating point type to another floating point type, preserve the numeric value exactly
24
+
- Although widening conversions do not lose any information about the magnitude of a value, the widening conversions that result in a floating point value can lose precision.
25
+
- When converting from an int or a long to a float , or from a long to a double , some of the least significant digits may be lost.
0 commit comments