Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
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

error: Content is protected !!