double b = 12.0359;
cout << setiosflags(ios_base::fixed);
cout.precision(2);
cout << b << endl;
C++小数位数格式化
最新推荐文章于 2024-07-24 13:11:16 发布
double b = 12.0359;
cout << setiosflags(ios_base::fixed);
cout.precision(2);
cout << b << endl;