Articles → Python → Round Function In PythonRound Function In PythonIn this article, we will discuss about round function in pythonPurpose Round function returns floating point number, rounded to n digits.Syntax round(number, n)HereNumber – Number you want to round off.N – Number of digits after decimal.Example import math print(round(math.pi,3))Here is the outputClick to EnlargePosted By - Karan Gupta Posted On - Monday, April 22, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
round(number, n)
import math print(round(math.pi,3))
Query/Feedback