Title: Rounding a total
Last modified: June 29, 2023

---

# Rounding a total

 *  Resolved [ritterrunkel](https://wordpress.org/support/users/ritterrunkel/)
 * (@ritterrunkel)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/rounding-a-total/)
 * I want to round up the following: a sum divided by 11. The total sum (Ihr Monatlicher
   Abschlag) that results is to be rounded up: (total_field_id_3) / 11
 * I have tried Math.round(11), but it does not round. What am I doing wrong?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frounding-a-total%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [stanstylemixthemes](https://wordpress.org/support/users/stanstm/)
 * (@stanstm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/rounding-a-total/#post-16860736)
 * Hello, [@ritterrunkel](https://wordpress.org/support/users/ritterrunkel/)
 * In solving this case, this JS static method will help you:
 * Math.ceil()
 * This method rounds up floating numbers, here is a link that will be useful to
   you:
 * [Link ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil)
 * Add this method to the formula field like this:
 * [Screenshot ](https://prnt.sc/ZAbUeADlbgLy)
 * Best regards.
 *  Thread Starter [ritterrunkel](https://wordpress.org/support/users/ritterrunkel/)
 * (@ritterrunkel)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/rounding-a-total/#post-16867874)
 * Works 🙂 Thanks!
 *  Plugin Support [juliastylemixthemes](https://wordpress.org/support/users/juliastylemixthemes/)
 * (@juliastylemixthemes)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/rounding-a-total/#post-16870687)
 * Hello, [@ritterrunkel](https://wordpress.org/support/users/ritterrunkel/)
 * If you have any additional questions or difficulties please let us know. We will
   be glad to assist you.
 * Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Rounding a total’ is closed to new replies.

 * ![](https://ps.w.org/cost-calculator-builder/assets/icon-256x256.png?rev=3525305)
 * [Cost Calculator Builder](https://wordpress.org/plugins/cost-calculator-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cost-calculator-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cost-calculator-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/cost-calculator-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cost-calculator-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cost-calculator-builder/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [juliastylemixthemes](https://wordpress.org/support/users/juliastylemixthemes/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/rounding-a-total/#post-16870687)
 * Status: resolved