how to round a float to one decimal place python code example
Example 1: print upto 1 decimal place python
print("{:.1f}".format(number)) # Python3
print "%.1f" % number # Python2
Example 2: python round down
>>> int(1.6)
1
>>> int(2)
2
>>> int(3.9)
3