From: Michal Suchanek Date: 2011-09-16T23:47:40+09:00 Subject: [ruby-core:39587] Re: [Ruby 1.9 - Bug #4576] Range#step miss the last value, if end-exclusive and has float number On 16 September 2011 16:18, Yusuke ENDOH wrote: > Hello, > > 2011/9/16 Michal Suchanek : >> == 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