#include <iostream> #include <iomanip> //用setprecision(n)设置精度,其中n表示精确到小数点后n位 using namespace std; void main() { double aa = 10; cout << fixed << setprecision(500) << aa << endl; system("pause"); }
#include <iostream> #include <iomanip> //用setprecision(n)设置精度,其中n表示精确到小数点后n位 using namespace std; void main() { double aa = 10; cout << fixed << setprecision(500) << aa << endl; system("pause"); }
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。