#include "stm32f4xx.h"
#include "usart.h"
#include "delay.h"
float x1,x2;
int main(void)
{
x1=0.005;
x2=0.008; //此处设断点
while(1){
}
}
上面的程序执行到断点时,x1在watch2中显示值为 0.00499999989,
为什么会是这个结果呢,望高手们指导一下,非常感谢.
使用的是mdk5.11,M4芯片.
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
强奸法定义成单精度的
一周热门 更多>