How to manage custom earned leave in ERPNext?

Hi,
I checked the ‘Is Earned Leave’ option for a leave type. This particular leave should be credited as 1.67 leaves per month. Any additional leaves taken would be considered as Leave Without Pay. Since ERPNext doesn’t round off 1.67, I added 1.67 to the option then and set the maximum number of leaves to 20. However, when I assigned this leave type to an employee, during the leave application, the employee had 20 leaves and was able to take 3 leaves, which is logically incorrect. How can I tackle this situation in ERPNext?

Also, when I tried to apply leave, leave days applied beyond 3 days were still shown as “3” ( from 11/09 to 15/09 is shown as 3 days) and I’m able to save the application and even approve it. But, when I approve, attendance will be marked against 11/09, 12/09 and 13/09 only.

this is being solved now.
I kept everything same and only removed the rounding. I kept that field blank. I then created a leave policy with this particular leave type and assigned 20 leaves. then the system started calculating the 1.67 leaves for each month

But, the problem I am facing now is that the system would assign the first 1.667 leaves only after on month from the joining date. i.e., if the employee joined on 1st Jan, he would be credited 1.667 leaves only on Feb 1st. But, I need the leave to be credited on the same day as the joining day. How to do this?