📜  如何在 C++ 代码示例中使用 3 个十进制打印 fload

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

代码示例4
std::cout << std::setprecision(2) << std::fixed;
// where the 2 is how many decimal places you want
// note you need to