为什么输出不是保留两位小数呢?
c++吧
全部回复
仅看楼主
level 7
雨可嘉 楼主
为什么输出不是保留两位小数呢?
2017年12月06日 09点12分 1
level 11
cout<<"y="<<fixed<<setprecision(2)<<y
2017年12月06日 10点12分 2
level 2
加fixed或改成3
2017年12月06日 10点12分 3
1