Questions tagged [rounding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
27
votes
4answers
8k views

What is the status of rounding issues in 1.7?

We are using Magento CE 1.7 and have various rounding issues. In various calculations there is a 0,01 EUR difference. The basic issue might be that the article-prices are incl. tax. Co-programmers ...
3
votes
1answer
2k views

1.9.2 Catalogue Price Rules rounding (when more then one rule applied with 'Stop further rules..')

In some cases of catalog price rules i have noticed, that the final price after rule being applied is rounded incorrectly. Example: Nett Price for one unit: 22.67 EUR Rule: 50% of original price ...
14
votes
2answers
3k views

Why does Magento store a rounding delta when calculating taxes

In the model tax/Sales_Total_Quote_Tax, there is a method _deltaRound() that rounds a price. It adds a small delta, to stop nondeterministic behaviour when rounding 0.5. /** * Round price based on ...
8
votes
1answer
9k views

How do you fix rounding issues?

Annoying issue about rounding. I think community knows it. When you use price including tax, discounts and so on you will get 0.01 price difference. I found a solution to rewrite core class with ...
2
votes
2answers
5k views

Rounding products prices in magento?

I create a new product and type price= $1.2222. But when I click Save and Continue edit the price = $1.22. I don't want to round the price, i want the price=$1.2222. How can I do that? Thank you!
1
vote
2answers
758 views

How to Round off Discount price?

I copy these file from core to local folder from app/code/core/Mage/SalesRule/Model/Quote/Discount.php. **WHAT I NEED TO DO IS ROUND OFF DISCOUNT VALUE WHICH ALSO ROUND OFF TOTAL VALUE AS WELL ** I ...
1
vote
1answer
664 views

Magento 2: Round up foreign currency. How to do it?

In Magento 2, how do we show prices in other currencies than the base currency rounded up? For example, when foreign currencies are calculated using today's exchange rate, the price may be shown as $...
2
votes
1answer
745 views

Rounding Error Problem

In Magento 1.7 there is a well known rounding error issue, which I thought I have solved using the fix suggested for example here However, ever since I have applied the fix, there is now a very ...
2
votes
2answers
4k views

Round Price to 4 decimal places

We have a client who is now providing prices to 4 decimal places. These are stored against the product and indexed correctly. When the product is added to the cart, the price in sales_flat_quote_item ...