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.

TM4C123GH6PMI MDK5.14下用pow()计算气压计高度出现奇怪数据可能溢出了



TM4C123GH6PMI  MDK5.14下用pow()计算气压计高度出现奇怪数据可能溢出了,但是我在MDK5.14下用ST的M4运算正常,程序是一样的

        return  (float)((1.0f - pow((MS5611.pressure) / 101325.0f, 0.190295f)) * 44330.0f);  这个是计算的语句我现在FPU都是关闭的编译器也是关闭的。请问这个什么原因。还有问下 我要开启FPU的话  在编译器勾上USE FPU  同时调用        ROM_FPULazyStackingEnable();
        ROM_FPUEnable();函数,就可以了吗?  不用在MDK编译器里面加入其它的宏吗/