Title: Equation Calculation Issue
Last modified: October 4, 2022

---

# Equation Calculation Issue

 *  Resolved [simonbry](https://wordpress.org/support/users/simonbry/)
 * (@simonbry)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/equation-calculation-issue/)
 * Hi,
 * I’m trying to create a volume calculator using length (m), width (m) and height(
   mm) to give a result in cubic meters.
 * I’ve set up 3 number fields and a calculated field with the equation fieldname2*
   fieldname6*fieldname10 but I’m having issues getting the result to display the
   way I want it.
 * For example if a user puts 75, 50 and 10 in the number fields it returns a calculation
   of 37500 which is the correct number, however I’d like it to display as 37.5 
   without the extra digits at the end. I’ve tried using the PREC formula with no
   success.
 * Any help would be greatly appreciated!
    -  This topic was modified 3 years, 8 months ago by [simonbry](https://wordpress.org/support/users/simonbry/).

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/equation-calculation-issue/#post-16067971)
 * Hello [@simonbry](https://wordpress.org/support/users/simonbry/)
 * Your values are not in the same measurement units. If you have the length and
   width in meters but the height in millimeters, you must convert it into meters
   as well. The correct equation would be:
 * `fieldname2*fieldname6*fieldname10/1000`
 * Best regards.
 *  Thread Starter [simonbry](https://wordpress.org/support/users/simonbry/)
 * (@simonbry)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/equation-calculation-issue/#post-16068172)
 * Thank you so much that’s done the trick!

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

The topic ‘Equation Calculation Issue’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [simonbry](https://wordpress.org/support/users/simonbry/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/equation-calculation-issue/#post-16068172)
 * Status: resolved