1👍
You can limiting floats digit after the decimal point to one by using round
or float("{0:.1f}".
Check:
x= 60.1111
g = float("{0:.1f}".format(x))
h = round(x, 1)
print h,g
Source:stackexchange.com
1👍
You can limiting floats digit after the decimal point to one by using round
or float("{0:.1f}".
Check:
x= 60.1111
g = float("{0:.1f}".format(x))
h = round(x, 1)
print h,g