标签: c++ floating-point c++14
#include<iostream> #include<iomanip> using namespace std; int main() { float a=3.14159*22500; cout<<fixed<<setprecision(4)<<a; }
我得到的输出是70685.7734,实际答案是70685.7750,如何修改代码以获得正确的输出?