About Lesson
round():-
The round() built-in function has a syntax of round (flt,ndig=0). It normally rounds a floating point number to the nearest integral number and returns that result as a float.
Example:-
print(round(3.45)) print(round(3.45654,1)) print(round(3.43234,1)) |
Output 3 3.5 3.4 |