#include "proctext.h" float mod(float a, float b) { int n = (int)(a/b); a -= n*b; if (a < 0) a += b; return a; }