I have found that I also get the -0 in version 5.1.1.
Luiz Henrique de Figueiredo wrote:
I am getting the following modulo result= 9%3-0 Negative zero? Has anyone seen this. Macintosh version?I can reproduce this. Apparently it is due to a gcc optimization because I get 0 when I rebuild Lua with -O0. I'll try to look further into this. --lhf