Title: Decimal Qty conversion error
Last modified: June 5, 2021

---

# Decimal Qty conversion error

 *  [intelcoders](https://wordpress.org/support/users/intelcoders/)
 * (@intelcoders)
 * [5 years ago](https://wordpress.org/support/topic/decimal-qty-conversion-error/)
 * Hi,
 * Issue description:
    A Product’s stock quantity is 5.78, admin creates a new order
   from POS with the qty selected as 5.78, order is created successfully and the
   stock is now showing **1.7763568394003E-15** instead of 0 (available stock(5.78)-
   new order qty(5.78) should be 0)
 * Outcome:
    Due to this, website frontend still shows the product(I guess since
   available qty is still > 0 but customers unable to add to cart since stock < 
   0. But when doing add to cart, website throws the error “**You cannot add that
   amount of {{productname}} to the cart because there is not enough stock(1.7763568394003E-
   15 remaining)**“.
 * What could be done to solve this?
 * Thnaks.
    -  This topic was modified 5 years ago by [intelcoders](https://wordpress.org/support/users/intelcoders/).

The topic ‘Decimal Qty conversion error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pos/assets/icon-256x256.png?rev=3109703)
 * [WCPOS - Point of Sale (POS) plugin for WooCommerce](https://wordpress.org/plugins/woocommerce-pos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pos/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pos/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [intelcoders](https://wordpress.org/support/users/intelcoders/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/decimal-qty-conversion-error/)
 * Status: not resolved