float的最大支持不是7位小数么!为什么会出现6位小数?
#include <stdio.h>void main()
{
float a=10.0f;
float b=4.0f;
float c=0.0f;
c=a/b;
printf("a lank %f feet long can be cut into %f pieces %f feet long.\n",a,b,c);
}
输出结果为:a lank 10.000000 feet long can be cut into 4.000000 pieces 2.500000 feet long.
小数居然是6位!搞不明白!