From: Alex Young Date: 2009-09-08T01:15:57+09:00 Subject: Re: Rubyscript instead of javascript Tony Arcieri wrote: > On Sun, Sep 6, 2009 at 3:28 PM, Tony Arcieri wrote: > >> For example: >> >> NaN == NaN >> >> ...is false! We lack basic reflexivity. >> > > Although it appears Ruby behaves the same way: > >>> NaN = 0.0/0 > => NaN >>> NaN == NaN > => false This particular example has nothing to do with coercion, and everything to do with IEEE floating point implementation. It's also correct, in both cases. -- Alex -- Posted via http://www.ruby-forum.com/.