From: Florian Frank Date: 2009-11-22T12:21:59+09:00 Subject: Re: really crazy about this (do/while) 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 -- Florian Frank