From: Francis Cianfrocca Date: 2006-05-18T06:10:41+09:00 Subject: Re: greatest float smaller than 1.0? ------=_Part_124806_13142559.1147900239035 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. On 5/17/06, Justin Collins wrote: > > polypus wrote: > > how do i get the greatest float smaller than 1.0? > > > > thanks > > > > > > 0.999999999999999 ? > > > irb(main):001:0> 0.99999999999 > =3D> 0.99999999999 > irb(main):002:0> 0.99999999999999 > =3D> 0.99999999999999 > irb(main):003:0> 0.999999999999999 > =3D> 0.999999999999999 > irb(main):004:0> 0.9999999999999999 > =3D> 1.0 > irb(main):005:0> 0.9999999999999991 > =3D> 0.999999999999999 > irb(main):006:0> 0.99999999999999912 > =3D> 0.999999999999999 > irb(main):007:0> 0.9999999999999992 > =3D> 0.999999999999999 > irb(main):008:0> 0.9999999999999993 > =3D> 0.999999999999999 > irb(main):009:0> 0.9999999999999994 > =3D> 0.999999999999999 > irb(main):010:0> 0.9999999999999995 > =3D> 0.999999999999999 > irb(main):011:0> 0.9999999999999996 > =3D> 1.0 > > > Dunno. > > -Justin > > ------=_Part_124806_13142559.1147900239035--