Working with string representations of floating point values can produce incorrect conclusions about the precision of the values. For example, consider the conversion of a value from type float
to type double
, a widening primitive conversion. Refer to the guideline FLP10NUM10-J. Beware of precision loss when converting primitive integers to floating-point for more details about such conversions.
...