标签: c++ c++11
为什么浮点值与std :: cout ??
std::cout << std::setprecision(20) << endl; float num = 1.2; cout << num << endl; double num2 = 1.2; cout << num2 << endl;
输出:
1.2000000476837158203 1.1999999999999999556