Articles → Python → Round Function In PythonRound Function In PythonIn this article, we will discuss the round function in Python.Purpose The round function returns a floating-point number, rounded to n digits.Syntax round(number, n)In the above syntax: -Number → Number you want to round offN → Number of digits after decimalExample import math print(round(math.pi,3))Output Posted 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