Python - round()

The round() function returns a number, rounded to precision of specified position after decimal point.

>>>round(1234.456,2)
1234.46
>>>round(1234.456,1)
1234.5
>>>round(1234.456,0)
1234.0
>>>round(1234.456, -1)
1230.0