Web Analytics

Python math.ceil() Method

Mathโ€ขRounding

The math.ceil() method rounds a number up to the nearest integer.

Syntax

math.ceil(x)

Return Value

The smallest integer >= x.

Example

Output
Click Run to execute your code