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
1#round print
2process = 1345 * 0.75
3
4print(f"The result can be shown as {round(process, 1)}") #output:1008.8
5print(f"The result can be shown as {round(process, 2)}") #output:1008.75
1# round(number, decimals).
2# second parameter is optional, defaults to 0.
3
4num1 = 1.56234
5num2 = 1.434
6
7print(round(num1)) # output: 2
8print(round(num2)) # output: 1
9print(round(num1, 3)) # output: 1.562
10print(round(num2, 1) # output: 6.3