lua-users home
lua-l archive

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


Greetings from South Texas Luiz,
I have played with the result, and something I tried is:
> = 0 == 9%3
true
> =0 < 9%3
false
> = 9 * 9%3
-0
Perhaps it is only cosmetic?  I have just started learning lua, so there are many things that I need educate myself on.
Thanks,
trav


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