Truncation is not the same as rounding!!
Rounding can go either up or down, while truncation can go only down.

David Reaves

On Jun 7, 2008, at 11:25 AM, [email protected] wrote:

> Re: RoundingPosted by: "benjamin_cail_scott"[EMAIL PROTECTED] 
>    benjamin_cail_scottFri Jun 6, 2008 6:51 am (PDT)
> > The concept of "Rounding" does not leave it up to the user to decide
> > whether to go up or down.
> >
> > On Thu Jun 5, 2008 5:41 am (PDT) [EMAIL PROTECTED] wrote:
> > > --- In [email protected], "stephendoty" <stephendoty@> wrote:
> > > > So do you always round down?
> > > >
> > > > Am I doing it right? Do I have the concepts down?
> >
> > > You first Question: You actually can choose to round
> > > up or down. Personally ,I round up, but it works either
> > > way.
> >
>
> You can control which way it works. Remember
> C uses truncation to convert fractional parts
> to Even an int.




Reply via email to