The ceil method of math module
The method ceil modulo math rounds a number to integers always up.
Syntax
pythonimport math
math.ceil(number)
Example
Let's round up the number 25.38:
pythonimport math
print(math.ceil(25.38))
Result of code execution:
python26
Example
Now let's apply the ceil method to the number -4.88:
pythonimport math
print(math.ceil(-5.25))
Result of code execution:
python-5