At 06:10 10.03.01 +0900, Leo Razoumov wrote: >On Sun Solaris 2.6 (Sparc Ultra 1) the behavior is different: > >ruby 1.6.2 (2000-12-25) [sparc-solaris2.6] > >irb(main):001:0> a = -1.0 >-1.0 >irb(main):002:0> a.nan? >false >irb(main):003:0> a = Math.log(a) >-Infinity >irb(main):004:0> a.nan? >false >irb(main):005:0> > >--Leo This bug was already solved for cygwin in the latest stable snapshot: (ChangeLog) Wed Mar 7 14:26:11 2001 WATANABE Hirofumi <eban / ruby-lang.org> * math.c (math_log, math_log10): should return NaN if x < 0.0 on Cygwin. Does the bug that you describe also occur with the latest stable snapshot on your system? - Tammo Freese freese / acm.org