Ah, now it is obvious. Thank you.Hoempa said:Maybe, I could make that more clear with an example.
23=2*7*k. In this case, k=3. It is not neccesary to know k.
Is it more clear now?
Hmm... in C * and / are of equal precedence, and that precedence block associates left-to-right. So the expression on the right is (a/b)*(((x*b)/a)%b).brangelito said:In C, I would write:
x % a == a/b * ((x * b/a) % b)
It doesn't matter, right?CRGreathouse said: