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.

TMS320F28069F: C28x IQmath library : _IQ(float F)

Part Number: TMS320F28069F

Hello,

I have a question on the C28x IQmath library.

Specifically it is on the Float to IQ24 data type conversion utility: _IQ(float F).

It is defined in the file of IQmathLib.h that

#define   _IQ24(A)      (long) ((A) * 16777216.0L)

It is apparent that 16777216.0 is equal to 2^24.

I can not understand why the floating-number A is multiplied by 2^24 in order to be converted into the IQ24 data type.

Please explain me the reason clearly.

Thank you for your guidance.

With regards,

G. Kim