这个函数是什么意思?
刚接触 C的函数,有一道题不会理解!请大虾们解决下!谢谢!~#include <math.h>
main()
{
float x;
scanf("%f\n",&x);
printf("ceil(%3.1f)=%4.2f\n",x,ceil(x));
printf("exp(%3.1f)=%4.2f\n",x,exp(x));
printf("fabs(%3.1f)=%4.2f\n",x,fabs(x));
printf("floor(%3.1f)=%4.2f\n",x,floor(x));
printf("ldexp(%3.1f,4)=%4.2f\n",x,ldexp(x,4));
printf("sqrt(%3.1f)=%4.2f\n",x,sqrt(x));
printf("fmod(%3.1f,3)=%4.2f\n",x,fmod(x,3));
printf("log(%3.1f)=%4.2f\n",x,log(x));
printf("log10(%3.1f)=%4.2f\n",x,log10(x));
printf("pow10(%d)=%4.2f\n",(int)x,pow10(x));
printf("pow(%3.14f,3.2)=%4.2f\n",x,pow(x,3.2));
}
这个题我想知道的是,%3.1f=%4.2f这些都是些什么意思?
搞不清楚!~