printf("%.2lf\n",0.345);//输出0.34
printf("%.2lf\n",0.345+1e-10);//输出0.35 
printf("%.2lf\n",0.12645); //输出0.13
实数有误差,使用要小心。有些时候输出来并不对