From: gotoken@... (GOTO Kentaro) Date: 2001-03-06T23:48:22+09:00 Subject: [ruby-talk:12138] Re: NaN, Infinity (Bug?) In message "[ruby-talk:12132] Re: NaN, Infinity (Bug?)" on 01/03/06, Dave Thomas writes: >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? I ran: #include main(){printf("%f\n", log(-1.0));} on my Cygwin box with `gcc version 2.95.2 19991024 (release)' and got: -Inf I think this is wrong. Should the configure detect this incompatibility? -- Gotoken