1int x = 6.3456824221
2
3#round(number_to_roundoff, round_off_till)
4#round_off_till is optional
5
6print(round(x)) #output: 6
7print(round(x, 3)) #output: 6.346
8print(round(x, 1) #output: 6.3
1import random
2Variable = round(random.randint(10, 20)/10)*10
3# this will return a random number to the nearest multiple of 10
1>>> import math
2
3>>> math.ceil(1.2)
42
5
6>>> math.ceil(2)
72
8
9>>> math.ceil(-0.5)
100
11