How to code a modulo (%) operator in C/C++/Obj-C that handles negative numbers How to code a modulo (%) operator in C/C++/Obj-C that handles negative numbers c c