From: "Thomas B." Date: 2009-04-29T05:25:50+09:00 Subject: Re: Detecting -0.0 Thank you :) Joel, your answer is not very helpful as 0.0.equals?(0.0) also returns false. Matthias, > irb(main):001:0> 1/-0.0 < 0 > => true > irb(main):002:0> 1/0.0 < 0 > => false thanks, that's just the obvious thing that I have overlooked! Changing the difference between zeros to the difference between infinities. TPReal. -- Posted via http://www.ruby-forum.com/.