1
I am trying to run the following calculation in Javascript, 78.98 * 10
and the result returned is always 789.8000000000001
my question is where did this come from 0.0000000000001
?
I tried several calculators, and this 0.0000000000001
should not be there. I have also tested in other programming languages.
My question is, is there a logical explanation for this? If there is an error in the Javascript engine where I notify?
Thank you.
Many floating comma values have no exact binary representation. Take a look here and here
– Isac
I was looking at the SOP in English and they sent me this site: http:/0.3000000000004.com/
– Hiago Souza