function getIntPart(x)     if x <= 0 then ...