Search the Community
Showing results for tags 'rounding'.
Hello, I have a number field ('Qty') in a submission form that is for recording the quantity of hours worked. So for example if someone worked 1 hour and 15 minutes the Qty value would be entered as 1.25. A new option I put in the submission form is a Start_Time field and an End_Time field (both Date/Time fields). A button running js puts the current date/time stamp in the Start_Time field and then when the user is done they click a button to put the new current date/time stamp in the End_Time field. The difference between the two are the minutes worked, put in the Qty field via Ca
I need help with a calculation that needs to round to the tenth of a percent. I have an update form with four fields. The fourth field is a calculation based on the numbers entered into 1, 2, and 3. Management Expenses Fundraising Expenses Total Revenue AFR My calculation must add management + fundraising and divide that sum by Total Revenue. The result should be input into the AFR field and rounded to the tenth of a percent. A few examples of what I need to accomplish: 500 + 500 / 12,000 = 0.0833333 this should be rounded to 8.3% 600 + 500 / 12,500 = 0.088 this should be rounde
I have a datapage that automatically insert numbers from a Caspio table into an html generated table on a Details page. Calculated values are also inserted into the table on the Details page. The problem is that a number such as 43 is incorrectly inserted into the table as 43.00. A number such as 1.23 is correctly inserted into the table as 1.23. What code do I need to insert so that 43 is inserted as 43 and not as 43.00? Numbers such as 1.23 would still need to be inserted as 1.23, and not simply as 1. Thanks, Thor