Lets try this again.. Hopefully Dillo or someone else can spot any errors..
Yikes. Imbedded heaven! But it should work with both positive and negative, as well as floating point numbers and %! test please!
- 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!