Title: Function ROUND() not working with brackets
Last modified: October 1, 2026

---

# Function ROUND() not working with brackets

 *  [Sakudo](https://wordpress.org/support/users/sakudo/)
 * (@sakudo)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/function-round-not-working-with-brackets/)
 * Hi,
 * thanks for the plugin.
 * I have to round an expression and I have observed that the ROUND() function does
   not like additional brackets and gives an error `SyntaxError: missing ) in parenthetical`
 * Say, I want to round `(var1+1)/(var2+1)`, where `var1` and `var2`are numbers.
   
   I would expect the code to be `ROUND((var1+1)/(var2+1))`. But it does not work,
   giving the above error message.
 * `((var1+1)/(var2+1))` does work and gives the (unrounded) result.
 * Similarly `((var-1.234))` or `((var-1.234)/2)` or `round(var-1.234/2)` work (
   with different results ofc), but `round((var-1.234)/2)` does not.
 * Any help greatly appreciated. Cheers.
    -  This topic was modified 1 week, 5 days ago by [Sakudo](https://wordpress.org/support/users/sakudo/).
      Reason: typo

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-round-not-working-with-brackets%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/calculation-for-contact-form-7/assets/icon-256x256.png?rev
   =2726517)
 * [Calculation for contact form 7](https://wordpress.org/plugins/calculation-for-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculation-for-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculation-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/calculation-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculation-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculation-for-contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Sakudo](https://wordpress.org/support/users/sakudo/)
 * Last activity: [1 week, 5 days ago](https://wordpress.org/support/topic/function-round-not-working-with-brackets/)
 * Status: not resolved