[futurebasic] Re: [FB] Rounding

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

From: tedd <tedd@...>
Date: Wed, 9 Jun 1999 11:55:54 -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
>"###.##".  I looked in the help of FB but I cannot find what I want.
>
>Example:
>From  754.73906
>
>To  754.73  or  754.74
>
>Thanks,
>DH


DH:

Off of my head.

set
    a# = 757.73906
    a& = a# * 100

now

    a& = 75773

then

    b# = a&/100

now

    b# = 757.73

tedd


___________________________________________________________________
<mailto:tedd@...>	               http://sperling.com/