c++输出小数
#include <stdio.h>
printf("%.4lf",value);
#include <iomanip>
cout.setf(ios::showpoint);
cout<<fixed<<setprecision(4)<<s<<endl;
赞赏
长按二维码向我转账
受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。
已发送
发送中
微信扫一扫关注该公众号