Specific rounding
-
So I made a form to calculate hours and I got it working fine. You can see it here:
https://gleam.guru/time-calculator/
What I need now is to figure out how to round the calculated number to the nearest half hour based on 15 mn (.25) increments. For example:
2.24 should round to 2.00
2.25 to 2.50
2.74 to 2.50
2.75 to 3.00Here is the equation I’m using:
PREC( ((120+fieldname3+fieldname4)/60)+((120+fieldname3+fieldname4)/60)*fieldname5 , 2)
Any help will be greatly appreciated
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Specific rounding’ is closed to new replies.