[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
**Subject**: **Re: Modulo operator produces incorrect results with negative operand(s).**
**From**: Martin <eden_martin_fuhrspam@...>
**Date**: Thu, 9 Feb 2017 05:02:10 -0800

Thank you for clarifying, guys!
Now I see that requirement of non-negative remainder is quite practical
and well-binded with mathematical rings of natural numbers.
Sadly (as I understand from similar discussions before) Lua
implementation is heavily linked with ANSI C and Roberto generally not
willing to introduce changes in logic that is different from ANSI C.
Although I consider "%" and math.mod() behavior change worth it.
-- Martin