Title: Wrong calculation when using input field
Last modified: January 16, 2024

---

# Wrong calculation when using input field

 *  Resolved [ivangneiding](https://wordpress.org/support/users/ivangneiding/)
 * (@ivangneiding)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wrong-calculation-when-using-input-field/)
 * Hello. I’m creating a form that gets 2 numbers (actually more, but I’m having
   problem with those 2 ones), lets say number A and number B, and I need this calculation:
   
   B / 12and thenA / (B / 12)For example (here we use coma as decimal separator):
   A = 8,38B = 0,89For that I will introduce a new number that will be automatically
   calculated:C = B / 12So, C = 0,89 / 12 = 0,07 (would use only 2 decimals, but
   using more than that bring same error). Its working fine for now.Next step: A/
   C my result is 112,98 but using any calculator 8,38 / 0,07 = 119,71The weird 
   thing is if in calculate field I put the number manually: 8,38/0,07 it brings
   me the right results. However, if I use the data from input fields it calculates
   wrong. No matter if I use something like A / (B / 12) or 12 * (A / B) I always
   get the same wrong calculation.Any hints on whats happening here?
 * Thanks in advance.
    -  This topic was modified 2 years, 4 months ago by [ivangneiding](https://wordpress.org/support/users/ivangneiding/).

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

 *  [davidstylemixthemes](https://wordpress.org/support/users/davidstylemixthemes/)
 * (@davidstylemixthemes)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wrong-calculation-when-using-input-field/#post-17352970)
 * Hello [@ivangneiding](https://wordpress.org/support/users/ivangneiding/),
 * Thank you for reaching out to us.
 * We forwarded this message to our QA engineers. They will analyze and fix the 
   issue in upcoming updates.
 * Thank you for your understanding.
 * Best Regards
 *  Thread Starter [ivangneiding](https://wordpress.org/support/users/ivangneiding/)
 * (@ivangneiding)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wrong-calculation-when-using-input-field/#post-17352998)
 * Ok, I will wait then. thank you very much.
 *  [davidstylemixthemes](https://wordpress.org/support/users/davidstylemixthemes/)
 * (@davidstylemixthemes)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wrong-calculation-when-using-input-field/#post-17355845)
 * You are welcome!
 * Should you have any further questions, please do not hesitate to reach out.
 * Best Regards

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

The topic ‘Wrong calculation when using input field’ 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
 * 2 participants
 * Last reply from: [davidstylemixthemes](https://wordpress.org/support/users/davidstylemixthemes/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/wrong-calculation-when-using-input-field/#post-17355845)
 * Status: resolved