From: Christoph Rippel Date: 2001-03-30T08:58:57+09:00 Subject: [ruby-talk:13349] Re: A subtle Hash bug > From: Christoph Rippel [mailto:crippel@primenet.com] [...] > the outcome of floating point division of 1 by +/-0.0 is either > Infinity or -Infinity and that they are different that just a > reflection of standard C double behavior. Not you can use > +/- Infinity as regular input and gets something sensible like > > p Math.atan(1/-1.0) # => -0.7853981634 a.k.a -Pi/4 > p Math.atan(1/1.0) # => 0.7853981634 Em, try ... p Math.atan(1/-0.0) p Math.atan(1/0.0) Christoph