I'm going to take an integer number, then print root of that with sqrt
function in float number to 4 decimal places without any rounding; but I have a problem. For example, when I take 3 as input, the output is 1.7320. It is correct; but when I take 4 as input, I expect 2.0000 as output; but what I see is 1.9999. What am I doing wrong?
import math
num = math.sqrt(float(input())) - 0.00005
print('%.4f' % num)