>>> import math  >>> math.ceil(5.2) 6  >>> math.ceil(5) 5  >>> math.ceil(-0.5) 0

Read more of this post