Source Code:
(back to article)
decimal_num = 3.14159265 rounded_num = round(decimal_num, 2) print(rounded_num) # 3.14
Result:
Report an issue