What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    reduce decimal places

    Asked by steves2002 on July 18, 2017 at 09:11 AM
  • Profile Image
    JotForm Support

    Answered by Chriistian on July 18, 2017 at 11:22 AM

    Are you referring to the Age field on this form: http://www.jotform.co/form/71978156881876? As per checking the form, it seems you are computing the Age based from the given Birth Date. However, I noticed that the computed value has decimal places.

    To reduce/remove the decimal places and always show an integer result, please follow the instructions below.

    1. Open Widget Setting wizard.

    2. Click on the ... icon for more options.

    3. Go to Options Tab.

    4. Set the "Decimal Places in Numerical Results." option to 0.

    5. Save Changes.

     

    Once you have set this up, the Age field should display an integer. 

     

    Here is a sample cloned form that you can check: https://form.jotformpro.com/71984511839972

     

    Note: On your Age computation, I noticed that the decimal point on the 365.25 is considered as String type instead of Number type.

    Please change the decimal point to Number type so the computation and setup will work properly. Just click on the [ . ] icon to change it to Number type.