static int UnsignedMod( int a, int b )

Summary

Does what you expected to happen when you did "a % b", that is, handles negative ['paramref'] values by returning a positive number from the end.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.