AnsweredAssumed Answered

Round up to the neared .5

Question asked by kelliganp on Apr 1, 2016
Latest reply on Apr 4, 2016 by kelliganp

Hi Folks,

 

I am working on a workflow that calculates a new employee's available leave based on the employee's start date. If the start date was January 1st, they would get 15 days of leave. The leave value must be rendered in increments of .5 (1/2) days. So, if a person, based on their start date calculates to 3.8 days, I want it to round up to 4 days of available leave. If they have 6.1, I want t to round up to 6.5 days of available leave. The leave date should never round down in my use case.

Has anyone here ran across this problem before? Any ideas on a strategy to accomplish it?

 

Thanks and Regards,

Patrick Kelligan

Outcomes