Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Discrepancy problem on decimals

Status
Not open for further replies.

erithreaj

Programmer
Jul 15, 2013
1
PH
Hi everyone,

I am encountering a slight decimal discrepancy.
So here is my scenario:
^TotalNetSales - 58,118.85 this is our total netsales on our record

^NONVATSales - 3,432.41 this is our total nonvat sales on our record

^VATSales - formula: (TAX01 / 1.12)
TAX01 on our record is 54,686.43
Example: (54,686.43 / 1.12) = 48,827.17

^VATAmount formula: VATSales * .12
Example: = 48,827.17 * .12 = 5,859.26
.12 is 12% our required percentage

Now, i have to add the total NONVat, VatSales & Vatamount, so all in all:
NON-VAT Sales = 3,432.41
VAT Sales = 48,827.17
VAT Amount = 5,859.26
TOTAL: 58,118.84

The total should be the same from our total net sales, as you can see, my total net sales is = 58,118.85 and my computed total of nonvat vatsales & vatamount is = 58,118.84.

I have tried rounding off on computing vatsales nor vatamount but still no luck.
I hope someone could really help me with this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top