How can I do this with a float (single precision) in C on the DSP?
#define PI 3.141...
float a = 4.221;
float b;
b = a%(PI);
Or (maybe simplier):
b = a%1;
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
How can I do this with a float (single precision) in C on the DSP?
#define PI 3.141...
float a = 4.221;
float b;
b = a%(PI);
Or (maybe simplier):
b = a%1;