取整专题提供取整的最新资讯内容,帮你更好的了解取整。
function getIntPart(x)     if x <= 0 then        return math.ceil(x);     end     if math.ceil(x) == x then        x = math.ceil(x);     else        x = math.ceil(x) - 1;     end     return x; end