Can anyone explain why this happens, it gives me the wrong numbers.
Hey dude , did u find a solotion for that?!?
I’m having the same problem here if i try to convert a string to float like 11.1111111 its ok it will be converted, but if i try to convert like 111.1 i will have something like 111.099996
It ca not be helped, this behavior is depended on CPU, read answer below
Hey dude did u find a solution for that?
I’m having the same problem here in other project
if i try to convert 11.11111111 ok it works and i get the same number but if i try 111.1 then i get a diferente number like 111.09998
if think you are just hitting a limitation on the float maths.
read this if you want to know more :
Hey man, thanks for the help!!!