From: elof@... Date: 2007-10-18T21:59:29+09:00 Subject: Re: 2 - 2.01 ?? On Thu, 18 Oct 2007 21:49:37 +0900, Michal Sza wrote: > Hey, > How come 2 - 2.01 = -0.00999999999999979 and not -0.01 > ??? > Can someone explain this to me please? Because you are using floating point. Reas this article for an explanation: "What Every Computer Scientist Should Know About Floating-Point Arithmetic" http://docs.sun.com/source/806-3568/ncg_goldberg.html Kristian