怎样在C程序的输出结果里四舍五入
#include <stdio.h>double fun (int m)
{
double fac,t=0.0;
int i=1,j;
for (i=1;i<=m;i++)
{
fac=1.0;
for (j=1;j<=m;j++)
fac=fac*i;t+=1.0/fac;
}
return t;
}
main ()
{int m;
printf("\ n input m:");
scanf ("%d",&m);
printf("\ n t=%.10lf\n",fun(m));
}