Other Parts Discussed in Thread: C2000WARE
请问一下,float数据类型在处理是会损失精度,比如将Long型转float型时精度损失了,请问一下怎么去避免这个精度损失
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.
请问一下,float数据类型在处理是会损失精度,比如将Long型转float型时精度损失了,请问一下怎么去避免这个精度损失
你好,F2809是定点芯片,对非整型数据都会使用IQ格式去处理,通过格式转换可以避免精度损失。你可以参考一下IQmath的说明:C:\ti\c2000\C2000Ware_4_01_00_00\libraries\math\IQmath\c28
客气了。
如果你觉得我的回答能帮助你解决问题,还请点击绿色的“确认答案”按钮,方便其他工程师参考。