- Code: Select all
double angWrap(double ang){return (double)abs((((long)(ang*100))%35999)*0.01);}
Yikes. Imbedded heaven! But it should work with both positive and negative, as well as floating point numbers and %! test please!
double angWrap(double ang){return (double)abs((((long)(ang*100))%35999)*0.01);}
Users browsing this forum: No registered users and 1 guest