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.

关于CCS6.0的_IQcosPU()的问题请教!



我用CCS6.0版本,在程序任何一处写_IQ24cosPU(_IQ(0.25)),结果应该是0,但是得到的结果是0.9几。把0.25换成IQ 0-1的锯齿,也得不到cos余弦波形。

但是同样的语句在2812中可以得到正确的答案。想问问大家是哪里出了问题? iqmath啥的都加了。是编译器的问题吗?还是版本问题。