JavaScript Question Zero

How are numbers stored?

What does .1 + .2 equal? Easy math problem, the answer is .3 no problem, right? Well, not quite. In the magical land of JavaScript, .1 + .2 = 0.30000000000000004, because obviously. This was actually the first thing I learned about JavaScript, my first intro to the language being a lengthy conversation about all the worst things in the language (glances at the this keyword). But, back to math… why doesn’t . [Read More]