Hi All,
Hoping this is a quick one, I have a field that is calculating hours worked total for timesheet. I have set the field to be using 2 decimal places:
I have Javascript setup to calculate the hours based on the days selected. But, when the user is selecting 3 days of work for the week, the field is populating a long number as per below:
Every other selection, be it 2 days, 4 days etc, calculates 1 decimal point. But, not sure why this field would be doing this? Where should I be looking at the code to make sure it is rounding the field?
I have tried to add (roundDecimal) on the field itself, but it stops calculating the times selected on the dates.
I know I am missing something in the code, just cannot get my hand on it!
Any feedback would be kindly appreciated,
Thank you in advance,
Ziad