Tuesday, August 9, 2011

How does the modulus operator in java works with minus numbers ?

i can't understand how does the "%" operator works with minus values. As an example what is the answer to "7 % -3" what is the process of calculating the answer.

No comments:

Post a Comment