double dumpSize = (1024000000.1415926535897932384 * 1.0) / 1024 / 1024;
string tempStr = to_string(dumpSize);
std::stringstream ss;
ss << setiosflags(ios::fixed) << std::setprecision(1) << dumpSize;  //此处1代表保存N为小数
tempStr = ss.str();

 

#ifdef _UNICODE
typedef wstring tstring;
#else
typedef std::string tstring;
#endif

相关文章:

  • 2021-09-25
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2023-02-25
  • 2022-01-13
  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案