Have you performed simple arithmetic operations like 0.1 + 0.2? You might have gotten something strange: 0.1 + 0.2 = 0.30000000000000004.
Have you performed simple arithmetic operations like 0.1 + 0.2? You might have gotten something strange: 0.1 + 0.2 = 0.30000000000000004.
Now try opening js interpreter and doing the same.
Also, try
0.1+0.2
in python interpreter.I’ll pass on the js interpreter. I don’t feel like learning the arcane runes.
To your point, Python handles those by giving you 0.300000004 might have missed a zero but valid point nonetheless