Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get to my amount without the taxes
Message
From
27/01/2004 11:12:40
 
 
To
27/01/2004 10:58:55
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00870822
Message ID:
00870999
Views:
11
Hmmm I don't like what I see. Does that mean that there's no efficient way to go back?

>Don't forget that the TVQ is rounded up.
>
>Ex.: 12.341$ will be rounded to 12.35$ (not 12.34$ like the ROUND () function will return)
>
>This formula will give a better result:
ROUND ((172.64 / 1.075) + 0.004, 2) = 160.60
HTH
>
>>It looks like the solution is with the rounding of the amounts.
>>
>>round((172.64/1.075), 2) = 160.59 <-- Wrong. It give 160.60
>>round((160.59/1.07), 2) = 150.08
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform