问题描述:

This question already has an answer here:

  • How can I change the precision of printing with the stl?

    2 answers

网友答案:

You can set the precision with std::setprecision.

With a bit of help from std::fixed

相关阅读:
Top