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

Friday, 29th October 2010, 2144hrs jw Software development | Project management

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