ceil() Method in Python with Examples – Programming Code Examples
Python

ceil() Method in Python with Examples1 min read

In this tutorial, we’ll learn how to use the ceil() method in Python.

Python number method ceil() returns ceiling value of x – the smallest integer not less than x.




Following is the syntax for ceil() method

Parameter:

x:This is a numeric expression.

Return Value

This method returns smallest integer not less than x.

Example

Output:

Leave a Comment