From: snex Date: 2009-04-30T09:10:03+09:00 Subject: Re: Detecting -0.0 On Apr 28, 3:07 pm, "Thomas B." wrote: > Hello. > > 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? > > Thanks in advance. > TPR. > -- > Posted viahttp://www.ruby-forum.com/. shouldnt converting it to a String and then testing for the presence of '-' work?