Why 0.1 plus 0.2 isn't 0.3
Because computers are just giant calculators that occasionally forget how to do basic addition. If you add 0.1 and 0.2 in most programming languages, you get this monstrosity instead of 0.3, thanks to base-2 binary struggling to perfectly represent base-10 fractions.

Keep exploring facts in this topic.
Technology →



