how to get one decimal place in python code example
Example 1: python format only 1 decimal place
>>> "{0:0.1f}".format(45.34531)
'45.3'
Example 2: how to round to the nearest 25 python
def myround(x, prec=2, base=.05):
return round(base * round(float(x)/base),prec)