From: Ernest Ellingson Date: 2001-03-07T02:27:23+09:00 Subject: [ruby-talk:12164] Re: NaN, Infinity (Bug?) At 23:06 3/6/2001 +0900, you wrote: >Tammo Freese writes: > > > After the Pickaxe Book, first print, p. 320 >... > > However, as the results of the code in the pickaxe book are generated > > by running the code (aren't they?), 1.6.0 seems to have the correct(?) > > behaviour (returning NaN). > >I just ran this again on my box here (ruby 1.6.2 (2001-02-02) [i686-linux]): > > a = -1.0 # => -1.0 > a.nan? # => false > a = Math.log(a) # => NaN > a.nan? # => true > >So, there seems to be a difference between a Linux box and a >Windows/cygwin box. Anyone any ideas? > > >Dave It works OK on windows 2000 ruby 1.6.2 (2000-12-25) [i586-mswin32] -1.0 false NaN true