Jason Attin wrote: The explanation says
the information was lost during the conversion from type int to type float as values of type float are not precise to nine significant digits.
Is that the case for only numbers with 9 digits?
I would really be careful with this -- as it is more like "around 9 digits".
First, notice that phrase "significant". So, how many significant digits does "12340000000" have?
Second, while you understand 9 digits in scientific notation, the computer doesn't store it that way. Floating point is stored as a binary number that will be multiplied by 2 to the power of another binary number. And there may be lots of precision loss during the conversion of a decimal number that will be multiplied by 10 to the power of another decimal number. Add to that, normalization, blah, blah, blah ...
It is more like "around 9 significant digits". It's a rough estimate. So, don't depend on it.
Henry