c++输出小数

#include <stdio.h>

printf("%.4lf",value);

#include <iomanip>

cout.setf(ios::showpoint);

cout<<fixed<<setprecision(4)<<s<<endl;

原文地址:https://www.cnblogs.com/wzhtql/p/10651465.html