📜  使用固定的 C++ 代码示例设置精度

📅  最后修改于: 2022-03-11 14:44:56.609000             🧑  作者: Mango

代码示例1
int x = 109887;
cout << fixed << setprecision(3) << x;