[futurebasic] Re: [FB] Rounding

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: "Chris Pereira" <nidus@...>
Date: Wed, 9 Jun 1999 12:25:40 -0400
>A very embarrassing question!  I am using FBII and I was wondering how to
>round a number to 2 digits?  I do not want this for all values in my
program
>and this is not being used in say a print statement so I can not use using
>"###.##".


Doug,

a# = INT(a# * 100 + 0.5) \ 100.0       : '// Changes 754.73906 to 754.74
a# = INT(a# * 1000 + 0.5) \ 1000.0  : '// Changes 754.73906 to 754.739

_Chris