Thursday, November 19, 2015

Just Open Google Chrome, press F12 and write the comparisation in the Console:

It's false? What? Why?

Well, it's not a JavaScript craziness. It's actually quite simple:

"Computers can only natively store integers, so they need some way of representing decimal numbers. This representation comes with some degree of inaccuracy. That's why, more often than not, 0.1 + 0.2 != 0.3."