Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
$5 difference due to rounding?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01169448
Message ID:
01169451
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
Hi Naomi

Rounding is always a pain. If possible avoid rounding. In either case explaining to clients is an even bigger pain. If possible calculate your commission on each and every item in the invoice (I presume) and then total that and store in your table. This will raise the issue that the comm. calc. in the invoice does not match the calculator value, but I believe you will be able to reduce the $5 diff. to something much lower, even with rounding in the report.


>
>I have a field Commission paid in the table. For my report I also re-calculate commissions based on category. I use currency fields for commissions and I round the numbers by 2. Now the total commissions paid (which is near 10K) doesn't match the sum of totals commissions by category by $5.
>
>I'm wondering, should I try to not round my commissions in the calculations? The total commission paid field is Numeric (11,2).
>
>What do you think about this problem?
>
>Thanks in advance.
>
>UPDATE. Without the round the difference is only in the last digits (cents portion), so I lost $5 somehow in my calculations...
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform