Stock remaining calculation incorrect | WordPress.org

[ad_1]

Hi! We are using the “Measurement Price Calculator by Skyverge” plugin to sell fabric by the metre with Woocommerce.

On occasion we find that the stock remaining amount will throw out a weird amount.

For example, previously a customer purchased 2 metres of fabric and the stock went from 4.65m to 2.65m which was correct

When the next customer ordered the same fabric, they purchased the remaining 2.65m of fabric which should mean there are ZERO metres left in stock.

However the calculation showing was 2.65m to 4.4408920985006E-16

Very strange! Do you know what could be causing this?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer