求教浮点型输出
#include <stdio.h>int main(void)
{
float num;
printf("Enter a floating-point value: ");
scanf("%f", &num);
printf("fixed-point notation: %f\n", num);
printf("exponential notation: %e\n", num);
return 0;
}
这个程序如果我输入21.29000 为什么输出21.290001