At 02:27 07.03.01 +0900, Ernest Ellingson wrote:
>At 23:06 3/6/2001 +0900, you wrote:
>>Tammo Freese <tammo.freese / offis.de> 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?

>It works OK on windows 2000

>ruby 1.6.2 (2000-12-25) [i586-mswin32]
>-1.0
>false
>NaN
>true

Perhaps this bug is only based on a misconfiguration of my system?
I use the windows installer from RubyCentral, version 1.6.2 (-03)
on Windows NT4. Anybody out there with the same configuration?
Which results do you get?
 


-
Tammo Freese
freese / acm.org