Title: Problem with decimal quantity
Last modified: January 11, 2019

---

# Problem with decimal quantity

 *  Resolved [infocropit](https://wordpress.org/support/users/infocropit/)
 * (@infocropit)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-decimal-quantity/)
 * I’m using your plugin and it works well.
    Now I have to use with decimal quantities
   and I have found that there is some trouble about it. In forum I have read that
   this is not supported. I propose you this little fix:
 *  $quantityInteger=intval($quantity);
    while ($quantityiInteger–) {
 * in /wp-content/plugins/wc-weight-based-shipping/server/vendor/dangoodman/shengine-
   wc-converters/src/PackageConverter.php
 * at line 61 of my installed version.
 * What do you think?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dan](https://wordpress.org/support/users/dangoodman/)
 * (@dangoodman)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-decimal-quantity/#post-11077338)
 * Thank you for the suggestion. We have just update the plugin in order to partially
   support decimal quantity. Please let us know if you have any issues with it.

Viewing 1 replies (of 1 total)

The topic ‘Problem with decimal quantity’ is closed to new replies.

 * ![](https://ps.w.org/weight-based-shipping-for-woocommerce/assets/icon-256x256.
   png?rev=2072721)
 * [Weight Based Shipping for WooCommerce](https://wordpress.org/plugins/weight-based-shipping-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/reviews/)

## Tags

 * [decimal quantity](https://wordpress.org/support/topic-tag/decimal-quantity/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dan](https://wordpress.org/support/users/dangoodman/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-decimal-quantity/#post-11077338)
 * Status: resolved