Forums / General Questions / Round errors when calculating prices

Round errors when calculating prices

Results 1 to 3 of 3
17 Nov 2011, 16:02
#1
dr_james_leo avatar

dr_james_leo

New Zenner

Join Date:
Oct 2009
Posts:
13
Plugin Contributions:
0

Round errors when calculating prices

Hi
I'm running version 1.3.8a and have noticed a slight issue. After a customer has made a purchased, in the orders screen the totals for each line don't always add up to the total for the entire order. The total for the whole order tends to be right but there can sometimes be a penny difference. So for example in one order there are 3 lines, £10.50, £10.50 and £76.36. Now this adds up to £97.36 but the total is shown as £97.35 which actually is correct. The value of £76.36 is actually incorrect because of rounding when the vat is added. Has anyone else seen this behaviour and know how to stop it?
Thanks
James
17 Nov 2011, 17:20
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Round errors when calculating prices

Known penny-differences, especially those caused by tax-included pricing issues, are fixed in v1.5.0
18 Nov 2011, 10:00
#3
dr_james_leo avatar

dr_james_leo

New Zenner

Join Date:
Oct 2009
Posts:
13
Plugin Contributions:
0

Re: Round errors when calculating prices

Thanks, I'll upgrade and hopefully the rounding errors will go.
Best regards
James