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.
您好!
我对 C28x IQmath 库有疑问。
具体而言、它位于 Float 至 iQ24数据类型转换实用程序:_IQ (float F)上。
它是在 IQmathLib.h 文件中定义的
#define _IQ24 (a) (long)((a)* 16777216.0L)
很明显、16777216.0等于2^24。
我无法理解为什么浮点数 A 乘 以2^24才能转换为 IQ24数据类型。
请向我清楚解释原因。
感谢您的指导。
此致、
G. Kim