#include <iostream>  
#include <iomanip>  
//用setprecision(n)设置精度,其中n表示精确到小数点后n位  
using namespace std;

void main()
{
    double aa = 10;    
    cout << fixed << setprecision(500) << aa << endl;
    system("pause");
}

C++中精确到小数点后任意位

 

相关文章:

  • 2022-03-01
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案