From: Joel VanderWerf Date: 2006-07-08T04:30:48+09:00 Subject: Re: Float#==. Legacy? The Float#=~ that Martin suggested is nice, but it still doesn't help with one of the problems which (I think) the OP wanted: x = 1.2 y = 1.2000000000000001 p(x =~ y) # => true p([x] =~ [y]) # => false Array#=~ is not defined now, and Object#=~ always returns false (see rb_obj_pattern_match()). Should Array#=~ attempt to propagate the #=~ call through its members? Or is there a good reason why this is left unspecified by ruby. The same question arises for hashes... Any ideas? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407