So legen Sie die Rundung der Sollgenauigkeit fest
Kann ich setprecision angeben, um doppelte Werte beim Streaming auf Standardausgabe zu runden?
ofile << std::setprecision(12) << total_run_time/TIME << "\n";
Ausgabe: 0,756247615801
ofile << std::setprecision(6)<< total_run_time/TIME << "\n";
Ausgabe: 0,756248
Aber ich brauche die Ausgabe als0.756247
Vielen Dank