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.

IQMath Pow problem

Hi

I'm running the following code :

int i;
float a = -2.123;
int x = 3;
float resTemp,res;

_iq a1 = _FtoIQ(a);
_iq x1 = _IQ(x); 
_iq b1 = _IQpow(a1,x1);
resTemp =  _IQtoF(b1);

 

I'm getting resTemp = 9.568631 instead of having resTemp = -9.568631.

Does anyone have any idea why I'm not getting the minus sign? I've to run this example with integers only and I see the same phenomena.

 

Thank you,

Ronen