Title: Rounding errors
Last modified: September 15, 2021

---

# Rounding errors

 *  Resolved [billspaced](https://wordpress.org/support/users/billspaced/)
 * (@billspaced)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/)
 * I have products with dynamic pricing. For 1000 cards, my unit price is $.095,
   or $95 for a 1000 cards. However, woocommerce seems to be rounding up the unit
   price to $.10 before it multiplies by the number of units (1000), giving the 
   subtotal as $100.
 * Rounding should occur AFTER the multiplication.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frounding-errors-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [billspaced](https://wordpress.org/support/users/billspaced/)
 * (@billspaced)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14872910)
 * I have screenshots but I don’t know how to upload them (is it even possible)?
 *  [zworthkey12vaibhav](https://wordpress.org/support/users/zworthkey12vaibhav/)
 * (@zworthkey12vaibhav)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14873155)
 * Hi [@billspaced](https://wordpress.org/support/users/billspaced/),
 * Your solution has 2 steps:
    1. Set Decimal value from `WooCommerce > Settings
   > General > Number of decimals`. After navigating to this, set the value to 3.
 * 2. Navigate to `WooCommerce > Status > Tools` and click on Clear Transients.
 * Hope that works.
 * Thank you
    -  This reply was modified 4 years, 6 months ago by [zworthkey12vaibhav](https://wordpress.org/support/users/zworthkey12vaibhav/).
 *  Plugin Support [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * (@abwaita)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14873336)
 * Hello [@billspaced](https://wordpress.org/support/users/billspaced/),
 * * For sharing screenshots here, you can use [https://snipboard.io](https://snipboard.io)–
   please follow the instructions on the page, then paste the image URL in this 
   chat.
 * That said, I checked the product page that you shared and on my side, the price
   was shown as $1.19.
 * 
    Link to image: [https://snipboard.io/bcDaQY.jpg](https://snipboard.io/bcDaQY.jpg)
 * However, when I tried adding to cart 1000 cards, the price was discounted down
   to $0.10.
 * 
    Link to image: [https://snipboard.io/xAS7bT.jpg](https://snipboard.io/xAS7bT.jpg)
 * Thus, it does not seem to be a rounding error, but rather a tool that you’re 
   using to discount prices down to $0.10. I recommend that you do a full conflict
   test to see if you can find out the tool causing this issue.
    Here’s the conflict
   test guide – [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
 * Let us know how it goes.
    Thanks.
    -  This reply was modified 4 years, 6 months ago by [abwaita a11n](https://wordpress.org/support/users/abwaita/).
      Reason: *added clarifications
 *  Thread Starter [billspaced](https://wordpress.org/support/users/billspaced/)
 * (@billspaced)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14879389)
 * so in the individual product page, the price (dynamic pricing) is set to $.095
   for 1000 to 1500 cards for the small size (2.5×3.5) – [https://snipboard.io/QGck6o.jpg](https://snipboard.io/QGck6o.jpg)
 *  Thread Starter [billspaced](https://wordpress.org/support/users/billspaced/)
 * (@billspaced)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14879577)
 * [@zworthkey12vaibhav](https://wordpress.org/support/users/zworthkey12vaibhav/),
   when I do that, it confuses people when they see their total in the cart at, 
   for example, $95.000. Is there a way to limit the digits on the checkout/cart
   page while still doing what you suggested?
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14879895)
 * Hey [@billspaced](https://wordpress.org/support/users/billspaced/),
 * Thanks for getting back.
 * In the screenshot you shared I can see a `Dynamic Pricing` option that is not
   part of the WooCommerce core plugin. This extra function was added by another
   plugin or via custom code.
 * As suggested by [@abwaita](https://wordpress.org/support/users/abwaita/), kindly
   reach out to the tool or plugin authors for assistance. If you don’t know what
   tool added that particular option you can perform a [conflict test](https://docs.woocommerce.com/document/how-to-test-for-conflicts/.)
   disabling all other plugins except WooCommerce. Reactivate your other plugins
   one by one, testing after each, until you find the one adding that functionality.
 * Thanks.
 *  Thread Starter [billspaced](https://wordpress.org/support/users/billspaced/)
 * (@billspaced)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14884104)
 * Okay, that makes sense. Does the core WooCommerce plugin have similar functionality?(
   different unit price depending on quantity – e.g., 16 units at $1 and 1000 units
   at $0.50?)
 *  Thread Starter [billspaced](https://wordpress.org/support/users/billspaced/)
 * (@billspaced)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14884211)
 * So it’s an official WooCommerce extension – Dynamic Pricing ([https://woocommerce.com/products/dynamic-pricing/?quid=0741978975b91a7ba63976eb3bb13950](https://woocommerce.com/products/dynamic-pricing/?quid=0741978975b91a7ba63976eb3bb13950))
 * I disabled that plugin and the discount on 1000 units ceased to work. I re-enabled
   it and the discount came back with, of course, the rounding error.
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14885770)
 * Hi [@billspaced](https://wordpress.org/support/users/billspaced/)
 * > I disabled that plugin and the discount on 1000 units ceased to work. I re-
   > enabled it and the discount came back with, of course, the rounding error.
 * Thank you for clarifying. Since this issue is directly related to the premium
   extension, please contact us at [WooCommerce.com > My Account > Support](https://woocommerce.com/my-dashboard/).
   You may need to create an account before you can access that page. Also, include
   a link to this forum thread, so that we can keep track of what’s already been
   done.
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14909145)
 * Hi [@billspaced](https://wordpress.org/support/users/billspaced/)
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   If you have other questions, please feel free to open a new topic.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Rounding errors’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [MayKato](https://wordpress.org/support/users/maykato/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/rounding-errors-2/#post-14909145)
 * Status: resolved