How to round off numbers in python?
![](https://pythonpoint.net/wp-content/uploads/2020/11/Simple-Work-Blog-Banner-1-1024x576.jpg)
Python provide us with an inbuilt round() function to round off the numbers.
round() function makes it very easy to round off any number.
e.g.,
a=23.34 print(round(a))
![](https://pythonpoint.net/wp-content/uploads/2020/11/Screenshot-753-1024x349.png)
We can round off a number up to any number of decimal places.
e.g.,
a=1/3 print(round(a, 2))
![](https://pythonpoint.net/wp-content/uploads/2020/11/Screenshot-756-1024x271.png)
This is all about rounding off a number.
Subscribe
Login
Please login to comment
0 Discussion