Jump to content

Prices Not Accurate In Combinations


Recommended Posts



my online shop runs on Prestashop


I am creating product with different combinations, each of which has a different price. The problem is that the rounding is not working fine.


Concrete example:


product base price 6.00 (with taxes) and 5.555556 (without taxes) => 8% (but I think it stores 5.56)


For a specific combination I add 1.50 (1.388889), but basically prestashop stores a rounded 1.39.


Instead of having 7.50 (6.00 + 1.50), I have 7.51 (5.56 + 1.39=6.95 + 8% => 7.506 => 7.51)


Why on the database are prices not stored with 6 decimals? Actually, I get 5.560000 instead of 5.555556... Why this loss of accuracy?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More