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