Round numbers on calculation

  • Profile Image
    SimranS
    Asked on January 02, 2014 at 10:15 PM

    I would like to add a discount 5% on a total in a textbox, unfortunately the decimal points don't add up right and there's no way to fix it with the current config. Here's an example:

    Total is $10.2 and I have it calculate a discount of 5%, well it shows $96.9 instead of $9.69

     

    $43.25 will show $4108.75 rather than $41.08(How I want) or at least $41.0875...

     

    What can I do? 

  • Profile Image
    ashwin_d
    Answered on January 03, 2014 at 03:18 AM

    Hello SimranS,

    I'm sorry for the trouble caused to you.

    I have cloned your form and did the changes to show the correct calculations. Basically what need to be done is that, you need to replace the existing text box with number fields which can be found under "Quick Tools" tab:

    I have just replaced the calculation textboxes with number fields and the calculation values seems to be correct. Take a look at the following form:  http://www.jotformpro.com/form/40021233726946?

    If this form looks okay to you, feel free to clone this form. This guide should help you in form cloning: http://www.jotformpro.com/form/40021233726946?

    Do get back to us if you have any questions.

    Thank you!