Python ceil function


Python ceil(x) function returns the smallest integer greater than the float number x. It's a method of math module.

>>> import math
>>> math.ceil(0.2)
1

>>> math.ceil(-1.8)
-1

>>> math.ceil(32)
32

>>> math.ceil(-32)
-32