Ruby modulo rules with negative numbers are unclear. In IRB:

-7 % 3 == 2  

Should be 1! Why?

Edit
Report