1996 保留12位小数的浮点数
#include <iostream>
#include<iomanip> //浮点数需要用到的头文件
using namespace std;
int main() {
//输入一个浮点数
double b;
cin>>b;
//保留12位小数
cout<<fixed<<setprecision(12)<<b;
return 0;
}
#include <iostream>
#include<iomanip> //浮点数需要用到的头文件
using namespace std;
int main() {
//输入一个浮点数
double b;
cin>>b;
//保留12位小数
cout<<fixed<<setprecision(12)<<b;
return 0;
}