How do I round off the value to the nearest Integer?

  • Profile Image
    erinvistnes
    Asked on July 09, 2019 at 02:19 PM
    Second, I have used a form calculator to calculate an average score for the four final single-choice questions. However, I would like to make it so that the average score I calculate is then rounded down to the nearest whole number. How can I do this?
  • Profile Image
    roneet
    Answered on July 09, 2019 at 02:34 PM

    You may take a look at these functions in the form calculation widget:

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

    round()

    Round a number to the nearest integer.

    floor()

    This is the opposite of the ceil() function. This rounds down a number to its nearest integer.

    You may get the floor() function by clicking on ... icon. 



    Ceil(): Round up a number to its nearest integer. If the value is a full number, it will not be rounded.


    Hope this information helps!

    Let us know if you have further questions.

    Thanks.