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.

IQtoF() doesn't work in iqmathlib

Other Parts Discussed in Thread: TM4C1233H6PM

hello,

I meet the IQtoF() issue in my TM4C1233H6PM project, the return value is always 0.0, and so far, only this convert to float type function is unavailable. So I build the minimal  project as following:

#include <stdio.h>
#include "IQmathLib.h"

float fTemp = 0;
_iq15 iq15Value = 0;


int main(void) {

iq15Value = _IQ15(0.3);

fTemp = _IQ15toF(iq15Value);

printf("fTemp = %f\n",fTemp);

return 0;
}

result in console:  fTemp = 0.000000

P.S: iq15Value has the correct value 9830, while fTemp is 0.0 in debug.