Square root:binary search

could you please elaborate how the code for fractionall has been written…since we are adding 0.1 or 0.01… in the integer part,how fractional parts like 3.163 attained? since only .01,.001,.0001 are used

@Vibhuti0206 hey first tell me the no for which you want to calculate the square root.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.