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.
Syntax:
AdvologixUtilities.getTimeByTimeRounding(
@timeInHoursValue,
);
Parameters:
@timeInHoursValue
The time to be rounded (in hours).
Result:
The function will return time in hours rounded according to your organization's global settings.
Example:
Decimal timeResult = AdvologixUtilities.getTimeByTimeRounding(5.67);
Example Result:
timeResult
Time (in hours) rounded according to global settings.