import math print (math.trunc(2.5)) # 2 (behaves like math.floor) print (math.trunc(-2.5)) # -2 (behaves like math.ceil)