Rounding Hours Via Code
When enabled, the hours entry can be rounded in accordance with your organizations global setting. The following global Apex method can be used to round the Time's hours to the global rounding setting. (new in Spring 2016)
The time to be rounded (in hours).
The function will return time in hours rounded according to your organization's global settings.
Decimal timeResult = AdvologixUtilities.getTimeByTimeRounding(5.67);
Time (in hours) rounded according to global settings.