[futurebasic] Re: [FB] Rounding Rule

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2002 : Group Archive : Group : All Groups

From: Staz <staz@...>
Date: Thu, 16 May 2002 11:49:41 -0500
> Ken's recent logic problem got me looking at rounding.
> 
> Isn't the rounding rule: ".5 and higher are rounded up and lower values are
> rounded down"?
> 
> Well,
> 
> INT(1.5) = 2
> 
> but
> 
> INT(2.5) = 2
> 
> It appears that whenever the number before the decimal is even, then INT(i)
> rounds down, not up.
> 
> Can anyone explain this?
> 
> Bernie
> 

andy (or anyone) can correct me if i am wrong on this...


we use a toolbox call to round. [dec2num] i believe the rouding decision is
apples.


i've been wrong before tho. at least once before. or was it once every 15
minutes?

-STAZ  ~)~