Magento 2 calculates the price Inc tax based on 2 decimals. I managed to save the price as 4 decimals. This get's stored in the
The problem now is that the vat does not get calculated based on the 4 decimals but the 2.
- Stored price: 41,275200
- vat percentage: 9 %
- expected price inc VAT: 44,989968 (displayed as 44,99)
- actual price displayed 45,00 (41,28 x 1,09 = 44,9952)
How can I fix this, I want the calculations based on all the decimals (4 in my case), but still want to display prices with 2 decimals?