Python Round
Round function
The round() function return the rounded value for a given decimal argument.
Examples
Example 1
>>> round(1.5) 2 >>> round(2.5) 2 >>> round(2.6) 3 >>> round(3.8) 4 >>> round(3.2) 3 >>>
The round() function return the rounded value for a given decimal argument.
Example 1
>>> round(1.5) 2 >>> round(2.5) 2 >>> round(2.6) 3 >>> round(3.8) 4 >>> round(3.2) 3 >>>