- round
round
examples/numbers/round.py
pi = 3.141592653589793 print(pi) # 3.141592653589793 print(round(pi, 10)) # 3.1415926536 print(round(pi, 5)) # 3.14159 print(round(pi, 2)) # 3.14
pi = 3.141592653589793 print(pi) # 3.141592653589793 print(round(pi, 10)) # 3.1415926536 print(round(pi, 5)) # 3.14159 print(round(pi, 2)) # 3.14