IL Ingo L. (grobian) OP 21.01.2009 13:11 #1118657 In wie weit ist es möglich über cout Ausgaben zu formatieren bzw. Formate wie 5.35898e-008 zu unterdrücken und als Kommazahl wieder auszugeben ? Antwort Zitieren Bearbeiten Thread verschieben Thread sperren Langsamer Modus Anmeldepflicht aktivieren Anpinnen Thread löschen Thread mit anderem zusammenführen Melden Hilfreich laut OP Danke
TH Timmo H. (masterfx) 21.01.2009 13:41 #1118712 cout.setf(ios::XXXX) wobei XXX folgendes sein kann:1left left-justifies the output 2right right-justifies the output 3showpoint displays decimal point and trailing zeros for all floating point numbers, even if the decimal places are not needed. 4uppercase displays the "e" in E-notation as "E" rather than "e" 5showpos displays a leading plus sign before positive values 6scientific displays floating point numbers in scientific ("E") notation 7fixed displays floating point numbers in normal notation -no trailing zeroes and no scientific notation Antwort Zitieren Bearbeiten Löschen Melden Hilfreich laut OP Danke