Title: Having issues with sum calculation
Last modified: March 16, 2020

---

# Having issues with sum calculation

 *  Resolved [chefuss](https://wordpress.org/support/users/chefuss/)
 * (@chefuss)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/having-issues-with-sum-calculation/)
 * Hi, I’m using the pro version of this plugin to sum some products quantities,
   the values of the product variation are like:
    7.7 + 3.6 + 4 etc. But somehow
   the plugins is returning the sum result as:
 * 33.999999993
 * (I didn’t make the math this are just examples numbers)
 * The formula is only sum and is like:
 * {uni_cpo_kitchen}+{uni_cpo_banio_toillete_quantity}+{uni_cpo_banio_integrado_quantity}
   +{uni_cpo_banio_zonificado_quantity}+{uni_cpo_dormitorios_una_cama_quantity}+{
   uni_cpo_una_cama_vestidor}+{uni_cpo_dormitorios_dos_cama_quantity}+{uni_cpo_dos_cama_vestidor}
   + {uni_cpo_principal_quantity}+{uni_cpo_principal_vestidor}+{uni_cpo_estar_quantity}
   +{uni_cpo_garage_quantity}+{uni_cpo_others}
 * and I have a dynamic container with the result of that sum.
 * Please, I need to get the number without all the decimals, I need the correct
   sum.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhaving-issues-with-sum-calculation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [moomooagency](https://wordpress.org/support/users/moomooagency/)
 * (@moomooagency)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/having-issues-with-sum-calculation/#post-12551084)
 * Use ’round’ function. Please, check the documentation, section Maths operators

Viewing 1 replies (of 1 total)

The topic ‘Having issues with sum calculation’ is closed to new replies.

 * ![](https://ps.w.org/uni-woo-custom-product-options/assets/icon-256x256.jpg?rev
   =1764217)
 * [Product Options and Price Calculation Formulas for WooCommerce – Uni CPO](https://wordpress.org/plugins/uni-woo-custom-product-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/uni-woo-custom-product-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/uni-woo-custom-product-options/)
 * [Active Topics](https://wordpress.org/support/plugin/uni-woo-custom-product-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uni-woo-custom-product-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uni-woo-custom-product-options/reviews/)

## Tags

 * [calculation](https://wordpress.org/support/topic-tag/calculation/)
 * [decimals](https://wordpress.org/support/topic-tag/decimals/)
 * [sum](https://wordpress.org/support/topic-tag/sum/)

 * 1 reply
 * 2 participants
 * Last reply from: [moomooagency](https://wordpress.org/support/users/moomooagency/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/having-issues-with-sum-calculation/#post-12551084)
 * Status: resolved