How to Hide Trailing Zeros in a Number / Rounding to Nearest Quarter Hour
I have fields on a PDF form for number of hours. I want to allow for 2 decimal places to allow for quarter hours (15 min, 45 min). This is an example of what is currently being displayed:
4.00
3.25
6.50
Is there a validation script that would hide the trailing zeros? I want the numbers above to be displayed as:
4
3.25
6.5
I've also been looking for a script that would round to the nearest quarter hour (.25, .5, .75), but I haven't had any luck finding this on forums. Is this even possible? It seemed too complicated so I abandoned the idea. I'm a novice when it comes to custom scripts and would appreciate any help from this knowledgeable community.
