• Resolved JapeNZ

    (@japenz)


    Hi there,
    Awesome plugin, thank you so much!

    I’m not sure if this is a Woocommerce issue, or something that can be fixed in your plugin.
    When I select a shipping option the price displays to 2 decimal points and the tax amount to 4 decimals, but it doesn’t round up correctly… for example:

    I have a shipping amount of $12 and a tax rate of 15%.
    The shipping price is therefore $10.43, with the tax $1.5645… this should round up to $1.57, but instead calculates to $1.56.

    Is it possible to dictate the amount of decimals that the imported shipping price is presented in?
    I’m guessing if the shipping price was to 6 decimals (like the default product price decimal amount), the rounding error would no longer happen.

    Edit: If I manually put in the shipping price to 6 decimals ($10.434783) the tax amount is automatically displayed in 6 decimals too ($1.565217), and the total correctly rounds up to $12.00.

    Thank you for your help!

    • This topic was modified 2 years, 1 month ago by JapeNZ.
Viewing 1 replies (of 1 total)
  • Thread Starter JapeNZ

    (@japenz)

    This was a Woocommerce issue that has been resolved in the latest Woocommerce update… woohoo! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Decimal places in the shipping price’ is closed to new replies.