1 #include <iostream> 2 #include <iomanip> 3 using namespace std; 4 int main() 5 { 6 cout.setf(ios::fixed); 7 cout<<fixed<<setprecision(6)<<0.222<<endl;//输出:0.222000 8 }
2017-03-27 00:32:17 (常用 ①)