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 to implement FMOD function on F28335



I know there is a  fmod function which compute the floating-point remainder of dividing x by y in C language.

And I want to implement this fmod function in F28335, but  I don't know how to do.

For example:

>>  x = 2*3.1415926 + 0.14527, y = 3.1415926;

>> fmod(x, y) = 0.14527

Please help me!!