Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where should ROUND() be applied in complex calc
Message
From
27/04/2009 01:21:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01396309
Message ID:
01396450
Views:
98
This message has been marked as the solution to the initial question of the thread.
>Thanks Rakesh for responding and I know you have been through the same. Okay, I understand user specific rounding at each tax level, what do you do about rounding the qty * rate, any other add less they want, in short any other Paises that arise apart from taxes? Do you take a global rounding and forcefully apply them or you don't round at any other level but ask them to put in a round at the end of the document, say an Invoice or do you allow user defined round there too?
>
>Kind regards.

Qty. x rate which is equal to 'Amount' is rounded at 2nd decimal. (No choice give to customer here) Ex : 100.126 is stored as 100.13

All induvidual taxes can be rounded to an integer or rounded at 2nd decimal (setting based)

Grand total rounding can also be rounded to an integer or rounded at 2nd decimal (setting based)

Rakesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform