fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double a = 0.25;
  9.  
  10. printf("%.6lf\n",a);
  11.  
  12. cout << setprecision(6) << fixed << a << endl;
  13.  
  14. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
0.250000
0.250000