Feb-21-2023, 06:23 AM
How do I round the float in last line to 2 places = x.xx instead of x.xxxxxxxxxx
it won't do it most of the time but it will with certain entered combinations.
round(n,2), or other variations did not work.
for n in range (0,items,1):
print("\t\t\t",(list1[n]),end = "\t\t\t\t")
print((float(list1[n]) * ratio),("\t"),list2[n]) line 6 float to 2 places in (floatlis[n]*ratio) I need help here
thanks for any help, Joseph
it won't do it most of the time but it will with certain entered combinations.
round(n,2), or other variations did not work.
for n in range (0,items,1):
print("\t\t\t",(list1[n]),end = "\t\t\t\t")
print((float(list1[n]) * ratio),("\t"),list2[n]) line 6 float to 2 places in (floatlis[n]*ratio) I need help here
thanks for any help, Joseph