Articles → Python → Round Function In Python
Round Function In Python
Purpose
Syntax
| Parameter | Description |
|---|
| Number | The number you want to round off |
| N | Number of digits after decimal |
Example
import math
print(round(math.pi,3))
Output
| Posted By - | Karan Gupta |
| |
| Posted On - | Monday, April 22, 2019 |