While I was working on Collatz Conjecture, I seen that there was a starting point 1.001298642*10^9 where I were getting 1047 iterations to reach 1. And against these iterations my matlab programming was returning 1001298642 in a string which is 1.001298642*10^9. But when I further work and tested on Matlab
>> 1.001298642*10^9 == 1001298642
ans =
logical
0
which means 1.001298642*10^9 is not equal to 1001298642. But actually both values are same.
I also tested these values on R Studio and same result I got. What is the problem. Am I doing some mistake?