• Dear All, I think I found something strange.

    The product prices are input with tax included. Shipping charge needs to be given without tax. The store is set up to display 0 decimals, and rounding is set to subtotal (the checkbox for rounding in Tax is checked).

    In the cart there is one product and shipping is charged. The cart shows 1000 Hungarian Forints for the product (correct), 450 HUF for the shipping (correctly calculated and rounded from the net shipping cost), but the total shows 1449 (most definitely incorrect).

    And here the fun starts:
    When the decimals are set to 2, the following is displayed:
    Product: 1000.00 (correct)
    Shipping: 449.96 (correctly calculated from the net shipping cost)
    Total: 1449.96 (correctly added product and shipping)

    This means that when the decimals are set to 0, the cart total is not rounded, but the decimals are simply cut off.

    When decimals are set to 1, rounding is correct.

  • The topic ‘Decimals are dropped, instead of rounded’ is closed to new replies.