function advtrains.abs_ceil(i) return math.ceil(math.abs(i))*math.sign(i) end