[Answer]-How to show a rounded decimal in a decimal form field in django

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

Leave a comment