CPP : Binary Search : Square Root

What is wrong with my code , so that I am not getting the decimal places ?
My code is :

Hi krishanu
The variable in main you are using to store return value is an int. Make it float.
Hope it helps :slight_smile: