From: Mauricio Fernandez Date: 2006-05-18T06:21:00+09:00 Subject: Re: greatest float smaller than 1.0? On Thu, May 18, 2006 at 06:10:41AM +0900, Francis Cianfrocca wrote: > I'd expect it to be platform-dependent. I also think this is one of those > questions that are better off not asked :-) so hopefully you can find a > different way to solve your problem. f = (1.0 - Float::EPSILON) # => 1.0 (1.0 - Float::EPSILON) == 1.0 # => false "%.20f" % f # => "0.99999999999999977796" -- Mauricio Fernandez - http://eigenclass.org - singular Ruby