Bernie,

Actually, I think .56 is the correct rounding, but merchants who are paying 
tax like to round down (grin).

I think Javier was suggesting that you do your math in the DOUBLE or 
REAL datatypes, then convert that to CURR.  (I would insist on DOUBLE for 
better precision.)

show version
R:BASE 2000 v6.5++ Windows (32-bit), U.S. Version, Build: 1.864xRT03
set var amt curr = 9.25
set var txrate = .06
set var tax curr = (.amt * .txrate)
sho v tax%
Variable           = Value                                   Type
------------------   ------------------------------          --------
tax                = $0.56                                    CURRENCY

set var amt DOUBLE = 9.25
set var txrate DOUBLE = .06
set var taxd DOUBLE = (.amt * .txrate)
SET VAR tax CURR = .taxd
sho v tax%
Variable           = Value                                   Type
------------------   ------------------------------          --------
tax                = $0.55                                    CURRENCY
taxd               = 0.555                                    DOUBLE  

Bill

On Tue, 17 Jun 2003 12:52:03 -0400, Terry on Verizon wrote:

>In the latest build of 6.5++ for windows, the result is .56

Reply via email to