On 16 September 2011 16:18, Yusuke ENDOH <mame / tsg.ne.jp> wrote:
> Hello,
>
> 2011/9/16 Michal Suchanek <hramrach / centrum.cz>:
>> == is meaningless with floats.
>
> I guess it is not essential for the problem Marc-Andre says.
> We can read it as follows without ==:
>
> (foo...bar).step(baz).all? {|n| n < bar }

Indeed:

(1.0...128.4).step(18.2).to_a.all? {|n| n < 128.4}
=> false

Thanks

Michal