I have recently understood handling float and doubles.
Could you please help me understand why this is passing some test cases for the problem whereas failing for some? I probably have created some language error which I am unable to understand.
Any other inputs are appreciated.