I am trying to show just 4 decimals of a float, without rounding the number. For example, the answers that I found explain it in a way that the output is rounded up or down;
In: 1.23456789
Out: 1.2346
but my desired output is: 1.2345
from math import sqrt
n = int(input())
list1=[]
for i in range (0,n):
list1.append(input())
for i in range (0,n):
print("{0:.4f}".format(sqrt(int(list1[i]))))