为啥lua的math.mod()函数在苹果下出问题

同样的版本的lua,安卓跟windows下使用math.mod()库函数没有问题,在ios下使用math.mod()提示mod is nil value,这是啥原因呀