You are here : python_3mathmathceil

math.ceil() - math

Return the ceiling of x, the smallest integer greater than or equal to x. If x is not a float, delegates to x.__ceil__(), which should return an Integral value.


Syntax

math.ceil()


Example

import math
a = 1.0003
print(math.ceil(a))


Output / Return Value

The Above Program would print 2.


Limitations


Alternatives / See Also


Reference

https://docs.python.org/3/library/math.html