how to round up 0.5 to 1 using python code example Example: how to round a number up in python >>> import math >>> math.ceil(3.2) # round up 4