程序运行过程中,偶然会出现计算出错的问题,浮点float型变量,使用官方库中的sin/cos函数,计算出来的值超过1,变成了很大的一个数。也出现过计算出来的开根号值小于0的情况。计算错误的下个周期,又计算正常,不继续出错。有时候短时发生多次,有时候数小时不发生。
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型变量,使用官方库中的sin/cos函数,计算出来的值超过1,变成了很大的一个数。也出现过计算出来的开根号值小于0的情况。计算错误的下个周期,又计算正常,不继续出错。有时候短时发生多次,有时候数小时不发生。