Is There a Way to Round Numbers to One (1) Decimal Place?

  • Profile Image
    iftach
    Asked on December 08, 2015 at 04:24 AM

    Is there option to make something like 0.137 round to 0.1 and 0.987 round to 0.9?



    This is a re-post of a comment on Form Calculation - Math Function Reference

  • Profile Image
    abajan
    Answered on December 08, 2015 at 04:49 AM

    This can be done without using any of the math functions by clicking Show Advanced Options

    and then selecting 1 for Decimal Places in Numerical Results:

    Above is a screenshot of the calculation wizard in this JotForm. Please feel free to clone and examine the form.

    Cheers

  • Profile Image
    abajan
    Answered on December 08, 2015 at 05:04 AM

    Incidentally, 0.987 would round to 1, not 0.9. A result of 0.9 would require the floor function divided by 10, I imagine.