获取整数部分和小数部分
math.modf(1.12) --1,0.12 math.modf(2) -- 2,0 math.modf(-1.23) -- -1,-0.23
首页
我的博客
粤ICP备17103704号