aproximate a number

Devan L devlai at gmail.com
Mon Aug 29 23:54:25 EDT 2005


Grant Edwards wrote:
> On 2005-08-30, Devan L <devlai at gmail.com> wrote:
> >
> > RoundToInt(2.0) will give you 3.
>
> That's what the OP said he wanted.  The next bigger integer
> after 2.0 is 3.
>
> --
> Grant Edwards                   grante             Yow!  I'd like TRAINED
>                                   at               SEALS and a CONVERTIBLE on
>                                visi.com            my doorstep by NOON!!

It's not really clear whether he wanted it to round up or to go to the
next biggest integer because he says he has bad english. I can't think
of a particular use of returning the next bigger integer.




More information about the Python-list mailing list