Why 0.1+0.2=0.30000000000000004(floating point number addition)
From the how-to-store-numbers-in-javascript, we know that Now we get 0.2 by the same way, Now we operate by the following steps:...
How to store numbers in Javascript
We know that all numbers in Javascript are stored in 64-bit format IEEE-754, also known as “double precision”,whatever the types int or float. When you...