标签:pac include 小数 using printf cout name names pre
#include<bits/stdc++.h>
using namespace std;
main()
{double a=2.9939;
cout<<fixed<<setprecision(2)<<a;printf("%.3f", a);
return 0;
}
标签:pac include 小数 using printf cout name names pre
原文地址:https://www.cnblogs.com/tyhj/p/9053602.html