------art_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 <collinsj / seattleu.edu> wrote:
>
> polypus wrote:
> > how do i get the greatest float smaller than 1.0?
> >
> > thanks
> >
> >
>
> 0.999999999999999 ?
>
>
> irb(main):001:0> 0.99999999999
> => 0.99999999999
> irb(main):002:0> 0.99999999999999
> => 0.99999999999999
> irb(main):003:0> 0.999999999999999
> => 0.999999999999999
> irb(main):004:0> 0.9999999999999999
> => 1.0
> irb(main):005:0> 0.9999999999999991
> => 0.999999999999999
> irb(main):006:0> 0.99999999999999912
> => 0.999999999999999
> irb(main):007:0> 0.9999999999999992
> => 0.999999999999999
> irb(main):008:0> 0.9999999999999993
> => 0.999999999999999
> irb(main):009:0> 0.9999999999999994
> => 0.999999999999999
> irb(main):010:0> 0.9999999999999995
> => 0.999999999999999
> irb(main):011:0> 0.9999999999999996
> => 1.0
>
>
> Dunno.
>
> -Justin
>
>

------art_124806_13142559.1147900239035--