expNums = 10
对 3 取整 取余
local line = math.modf( expNums / 3 ) -- 取整数
local mod = math.fmod( expNums, 3 ) -- 取余数
Lua math
作者:曾令伟
链接:https://www.jianshu.com/p/9a41e9225c7a
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
expNums = 10
对 3 取整 取余
local line = math.modf( expNums / 3 ) -- 取整数
local mod = math.fmod( expNums, 3 ) -- 取余数
Lua math
作者:曾令伟
链接:https://www.jianshu.com/p/9a41e9225c7a
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。