From: Zsban Ambrus Date: 2004-05-14T04:03:05+09:00 Subject: Re: Major Addition Bug? On Fri, May 14, 2004 at 02:57:33AM +0900, Joel VanderWerf wrote: > Zsban Ambrus wrote: > >No. I'd rather think this is not the problem. The problem is > >that you should not compare floating-point numbers with == or != unless you > >have a good reason to do it. > > Should 'ruby -W2' warn on use of Float#== ? No. Certainly not. There are valid uses for ==, you just have to know the limits of it on floating-point numbers if you are programming. Also, no programming language warns on it.