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.

Is there a straithforwad way to perform modulo operation with floating point numbers on C6713?

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;