Michal Sza wrote: > Hey, > How come 2 - 2.01 = -0.00999999999999979 and not -0.01 > ??? > Can someone explain this to me please? Because 0.01 cannot be represented accurately in binary. See http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems. -- Posted via http://www.ruby-forum.com/.