-
mbarsottiPerguntado em 12 de abril de 2021 às 16:52
Boa tarde, tem o tutorial do calculo com número elevado a 2?
-
Patrick_RRespondido em 12 de abril de 2021 às 23:24
Hello! We have a pow() function that does this. Here is a demo: https://www.jotform.com/form-templates/exponent-power-calculation-form
Reference: https://www.jotform.com/help/267-form-calculation-math-function-reference
Let us know if this doesn't solve your purpose.
Thank you!
-
mbarsottiRespondido em 13 de abril de 2021 às 07:37
Hi, good morning!
Thank you for your answer, but I still have a question.
I'm trying to make a calculation in this form for the IMC field, the calculation should be Peso/Altura elevado a 2.
But when I test it, it does not accept number with . as 1,60 meters and if I do in centimeters it only accepts until the number 100.
The link of the form is: https://form.jotform.com/211023149478655
Thank you in advance.
-
Patrick_RRespondido em 13 de abril de 2021 às 09:34
Hello! Kindly check this form: https://form.jotform.com/211024279195959
If the calculation works as expected; then following is how you can implement it in your form:
But in case this isn't working as expected, then kindly provide the exact mathematical formula for the IMC field that you wish to apply. We'll get back to you accordingly.
Thank you!
-
mbarsottiRespondido em 13 de abril de 2021 às 10:26
Hi!
Thank you for your answer, it really helped, but when I do it manually the result number is still diferent.
The calculation should be Peso/ altura (altura elevado a 2) or peso/(altura X altura). The value that should be with the 2 on top is the one about altura.
Let me show an example: if my weight is 60kg and my height is 1,60 meters, the calculation should be: 60 / (1,60 X 1,60) = 60 / 2,56 = 23,44
Thank you so much again.
-
Patrick_RRespondido em 13 de abril de 2021 às 21:33
Hello! Thank you for the detailed description. I applied this formula to a new form and it seems to be calculating correctly. Kindly check: https://form.jotform.com/211027747001948 (screenshot attached for your reference).
The implemented formula is as follows:
Let us know if this doesn't help.
Thank you!
-
mbarsottiRespondido em 14 de abril de 2021 às 07:25
Hi, good morning! How are you doing today?
That's perfect and it worked as expected.
Thank you so much for your help and support.
Have a wonderful week.
-
Patrick_RRespondido em 14 de abril de 2021 às 10:14
Hello! Glad to know that this worked as expected.
Thank you for contacting JotForm. Have a nice day!