In the Leave module on our system, as calculations are done based on the settings chosen, the "Rounding" option is a feature that affects how numbers are rounded. When this option is enabled, it means that the system will adjust the values according to certain rounding rules.

Based on the rounding options available on our system, the examples below will share the calculations that are done based on the rounding options selected. 




Example 1: 

Entitlement amount: 12 days


If None is selected = 12 days entitlement 

If Round up 0.5 days is selected = 12 days entitlement
If Round down 0.5 days is selected = 12 days entitlement 
If < 0.5 days, round down; If >= 0.5 days, round up is selected = 12 days entitlement



Example 2: 

Entitlement amount: 12.23 days


If None is selected = 12.23 days entitlement 

If Round up 0.5 days is selected = 12.5 days entitlement
If Round down 0.5 days is selected = 12 days entitlement 
If < 0.5 days, round down; If >= 0.5 days, round up is selected = 12 days entitlement



Example 3: 

Entitlement amount: 12.5 days


If None is selected = 12.5 days entitlement 

If Round up 0.5 days is selected = 13 days entitlement
If Round down 0.5 days is selected = 12 days entitlement 
If < 0.5 days, round down; If >= 0.5 days, round up is selected = 13 days entitlement



Example 4: 

Entitlement amount: 12.68 days


If None is selected = 12.68 days entitlement 

If Round up 0.5 days is selected = 13 days entitlement
If Round down 0.5 days is selected = 12.5 days entitlement 
If < 0.5 days, round down; If >= 0.5 days, round up is selected = 13 days entitlement