How do I calculate exponent equations?

  • Profile Image
    aaosresearch
    Asked on April 08, 2016 at 10:04 AM

    I am trying to set up a condition in my form that calculates a number raised to the power of another. I cannot figure out how to get the exp() or pow() equations to work in that way, and I'm not sure if that is even what they do.

    ex.

    two to the power of three = 2^3 = 2x2x2 = 8

    However, if I ask my form to calculate 2pow(3) or 2exp(3), I do not get 8 as the output in the selected field. 

    How do I use the functions in the field calculator to get the proper answer for an exponent equation like this?

     

    Thanks, 

     

    Kyle

  • Profile Image
    BJoanna
    Answered on April 08, 2016 at 11:41 AM

    Inside of this guide you can find more about Form Calculation - Math Function Reference:

    http://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference 

    And inside of this guide you can find how to perform calculation in the form:

    https://www.jotform.com/help/259-How-to-Perform-Calculation-in-the-Form 

    To calculate exponent equations, you need to use pow() math function and set your calculation like this.

    Here is my demo form: https://form.jotform.com/60984675573976 

    Feel free to clone it.

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image
    aaosresearch
    Answered on April 08, 2016 at 01:55 PM

    That was very helpful, thank you!

  • Profile Image
    BJoanna
    Answered on April 08, 2016 at 02:02 PM

    You're welcome.

    Feel free to contact us if you have any other questions.