一个输出的有关问题
一个输出的问题
#include <stdio.h>
main()
{
double f=632.23234235;
printf( "the type of this variable is float.(%5f)\n ",f);
}
为什么输出了小数点后6位而不是五位?
------解决方案--------------------
%x.yf
输出x位整数部分,y位小数部分
#include <stdio.h>
main()
{
double f=632.23234235;
printf( "the type of this variable is float.(%5f)\n ",f);
}
为什么输出了小数点后6位而不是五位?
------解决方案--------------------
%x.yf
输出x位整数部分,y位小数部分