From: Ruby Newbee Date: 2009-11-22T12:44:38+09:00 Subject: Re: really crazy about this (do/while) 2009/11/22 Florian Frank : > Ruby Newbee wrote: >> >> Since I think case one is right, so case two get wrong result. Why? >> Thank you. >> >> > > Welcome to the wonderful world of floating point numbers: > >>> 98.4 + 0.1 + 0.1 < 98.6 > # => false >>> 98.3 + 0.1 + 0.1 + 0.1 < 98.6 > # => true > oops that looks amazing. thanks~