Wiki source code of 5.3 Decimal Rounding
Last modified by Admin User on 2023/06/30 10:27
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | ==5.3 Decimal Rounding== |
2 | Note that if you have used **decimal quantities** in your basket, occasionally the order total may display a rounding difference. This is normal. Calculations are performed and stored using the entered level of precision and the displayed amount is rounded. Order totals are based on the stored, non-rounded extended values. | ||
3 | |||
4 | For example, the table below shows an order with two line items, the stored extended value, the displayed extended value, and the order total. | ||
5 | |**Quantity**|**Price**|**Stored Extended Amount**|**Displayed Extended Amount** | ||
6 | |1.57|£4.52 per kg|£7.0964|£7.10 | ||
7 | |2.86|£7.66 per kg|£21.9076|£21.91 | ||
8 | ||**Totals**|**£29.004**|**£29.01** | ||
9 | |||
10 | Note the rounding difference between the displayed extended amount total and sum of the displayed extended line amounts. |