Title: ROUND
Last modified: August 15, 2022

---

# ROUND

 *  Resolved [MasG](https://wordpress.org/support/users/dhevilz/)
 * (@dhevilz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/round/)
 * haii.. thanks for awesome plugin…
 * i want to ask for you,
    I want to use the multiplication formula, for example(
   fieldname1*fieldname2) results in (fieldname3) but, in fieldname3
 * when result
    – 1,000.69 is shown 1,001 – 1,000.79 is shown 1,001 – 1,000.89 is
   shown 1,001 – 1,000.99 is shown 1,001
 * when 1,000.68 is shown 1,000
    – 1,000.59 is shown 1,000 – 1,000.49 is shown 1,000–
   1,000.39 is shown 1,000 – 1,000.29 is shown 1,000 – 1.000.19 is shown 1,000 –
   1,000.09 is shown 1,000
 * how i write this formula?
 * thx
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fround%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/round/#post-15918183)
 * Hello [@dhevilz](https://wordpress.org/support/users/dhevilz/)
 * Thank you very much for using our plugin. A possible solution should be to check
   the decimal component of the result before applying the CEIL or FLOOR operations.
 * For example, your equation can be re-implemented as follows:
 *     ```
       (function(){
       var result = fieldname1*fieldname2;
       if(result-FLOOR(result) <= 0.68) return FLOOR(result);
       return CEIL(result);
       })()
       ```
   
 * Best regards.
 *  Thread Starter [MasG](https://wordpress.org/support/users/dhevilz/)
 * (@dhevilz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/round/#post-15918952)
 * code works fine, code works fine..

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

The topic ‘ROUND’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [floor](https://wordpress.org/support/topic-tag/floor/)
 * [Rounding](https://wordpress.org/support/topic-tag/rounding/)

 * 3 replies
 * 2 participants
 * Last reply from: [MasG](https://wordpress.org/support/users/dhevilz/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/round/#post-15918952)
 * Status: resolved