Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
math.ceil
math.ceil
Return the ceiling of x, the smallest integer greater than or equal to x.
Python 3.13
math
.
ceil
(
x
)
x
The number to round up.
Examples
Python 3.13
>>
>
import
math
>>
>
math
.
ceil
(
4.2
)
5