Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Doubles and UI display
Message
 
To
04/09/2009 03:44:07
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01422588
Message ID:
01422759
Views:
22
>Dunno whether this answers your problem, but
>
>every calculation ( multiplication or division ) has to be rounded to two decimals - then the problem diappears

Yes, thanks. I can be strict with myself to be careful to round stuff, but the real problem is that we have taxes on tax amounts so things start falling apart somewhere down the line, I will give you a typical manufacturers invoice footer

1) Item Value
2) Discount if any
3) Value after discount
4) Excise eg. 16% of 3)
5) Education Cess 2% of 4)
6) S&H Education Cess 1% of 4)
7) subtotal
8) VAT 4% of 7)
9) Addl. VAT 1% of 8)
10) Grand Total

Not to mention various addition and deductions required. These Cess and Addl. taxes that are killers when rounding, esp. upto 0 decimals are what the clients want.

Thanks anyway, I will keep on racking my brains every once in a while to find out if there is a solve-it somewhere out there :)
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform