{"section":"known-issues","requestedLocale":"en","requestedSlug":"sum-of-sellingprice-values-may-differ-from-total-product-value-minus-the-total-discounts","locale":"en","slug":"sum-of-sellingprice-values-may-differ-from-total-product-value-minus-the-total-discounts","path":"docs/en/known-issues/Shopping/sum-of-sellingprice-values-may-differ-from-total-product-value-minus-the-total-discounts.md","branch":"main","content":"## Summary\n\nThe sum of the product's unit value with applied discount (`sellingPrice` property) may differ from the product's total value minus the total discount value.\n\nThis is because unit discount calculation is a distribution of the total discount between all items and their quantities, which can cause rounding problems. By summing values that have been rounded, the difference from the original total can be noticed.\n\nTherefore, `sellingPrice` should be used as a reference, keeping the totalizers as the real value.\n\nThe occurrence is more frequent in stores that use less than 2 decimal places, when rounding is most used.\n\n## Simulation\n\nExample of occurrence:\n\n- Cart containing 2 units of a product that costs $ 190;\n- Total product value is $ 380;\n- 25% discount;\n- Total discount value is $ 95;\n- Discounted unit value is $ 142.5;\n- If the store does not use decimal places, the final unit value will be $ 142.\n\nIn this scenario:\n\n- Total products = $ 380;\n- Total discounts = $ 95;\n- Order Total = $ 285.\n\nHowever, the sum of the items' sale price, with the discount applied, is $ 284.\n\n## Workaround\n\nThere is currently no workaround available for this scenario."}