How to code a modulo (%) operator in C/C++/Obj-C that handles negative numbers ... #include <math.h> float mod(float a, float N) {return a - N*floor(a/N);} ...
確定! 回上一頁