lua 取整 取余

使用math.modf(x/y),此函数,第一参数返回整数部分,第二个参数返回小数部分

原文地址:https://www.cnblogs.com/emyueguang/p/2315768.html