From: Mathieu Bouchard Date: 2001-03-30T02:42:13+09:00 Subject: [ruby-talk:13334] Re: A subtle Hash bug On Fri, 30 Mar 2001, Pete Kernan wrote: > On Thu, 29 Mar 2001 23:11:03 +0900, Christoph Rippel pontificated: > + my reason for preferring the ladder is that the combination of > + (-0.0 == 0.0) but (1/-0.0) != (1/0.0) seems somewhat dubious to me > 1/0.0 == 1/0.0 is dubious enough. is this a cardinality test? :) > % ruby -le 'p (1/0.0 == 1/0.0)' > true Is there any good reason why Float's "Infinity" value is equal to itself? And then, is there any good reason why it shouldn't be changed? matju