0.1 + 0.2 != 0.3 and 0.1 * 0.2 != 0.02

What every computer scientist should know about floating-point arithmetic. A shorter and simpler explanation can be found here.