This question already has an answer here:

if I want to add a new Product (sale price 39,99) I can set the price like this: 33,60504201680672 (without tax).

The price in the shop is now shown correct: 39,99.

If I edit then the product, the price is in backend 33,61 and in frontend 40,00.

I already set the rounding decimal place in Store.php from 2 up to 4.

The Magento version is

Can anybody help?

marked as duplicate by Marius, Vladimir Kerkhoff, Sander Mangel, brentwpeterson, Mufaddal Nov 11 '14 at 10:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I found the solution here: https://stackoverflow.com/questions/6980164/magento-how-do-i-set-the-product-price-to-4-decimal-places


return number_format($value, 4, null, '');
  • Yep, the already mentioned extension solves this issue. And you should better use the extension and not edit the core file. Will add it as another answer. – Simon Sep 3 '14 at 11:11

The free extension Itabs_BetterPriceRounding solves nearly all rounding issues. It changes the rounding precision from 2 to 4 digits in all places used by Magento. It should also solve your problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.