Dennis, Bill,Terry,Javier Thanks but -- Round function reqires that amt be double. So I made it double and did the formula below and it still comes out to .55 should be 56. using more digits to right of decimal doesn't help because they are all .55555 My solution is to have the customer change his price to 9.26 <g>
Bernie ----- Original Message ----- From: "Dennis McGrath" <[EMAIL PROTECTED]> To: "RBASE-L Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 1:10 PM Subject: [RBASE-L] - Re: tax calc v6.5++ vs v7.0 > So it seems the answer is to do calulations in double, round to the > correct decimal and assign to a currency. > > Here is how to force that even though original values are currency > > > set var amt CURR = 9.25 > set var txrate DOUBLE = 0.06 'WILL FORCE CALULATIONS TO BE DOUBLE > set var tax CURR = (ROUND((.amt * .txrate), 2) > > > Dennis McGrath > >

