From: Matthias Reitinger Date: 2009-04-29T05:14:57+09:00 Subject: Re: Detecting -0.0 Thomas B. wrote: > I have a simple question - how to detect if a variable contains a Float > of value -0.0? Is there any special method for this, or any comparison > that distinguishes negative zero from a the regular zero? irb(main):001:0> 1/-0.0 < 0 => true irb(main):002:0> 1/0.0 < 0 => false -Matthias -- Posted via http://www.ruby-forum.com/.