lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


math.mod behaves differently than the modulus operator.

How to reproduce:
> = math.mod(7, -(1 / 0))
7
> = 7 % -(1 / 0)
nan