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 05:24:45
 
 
To
26/01/2004 18:44:12
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00870822
Message ID:
00870885
Views:
7
Hi Denis,


>What would be the best way to obtain that original amount?

If you not store the result with
grandresultDecimals = originalDecimals+2+3
then you cannot obtain that original amount.
But VFP Rounding problem do this task impossible.

Example:
original 150.10 ( 2 decimals )
150.10*1.07  => 160.61 ( true is 160.6070 )
160.61*1.075 => 172.66 ( true is 172.6525250 )

round(172.66/1.075/1.07,2) =>> 150.11
If you want a council,
not to invert arithmetical operations in order to obtain the values begins them;
Store or recompute the original amount.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform