bei der formatierung wird letze kommazahl weggeschnitten..
-
weiß jemand, warum bei der formatierung bei 116662.7 die 7 weggeschnitten wird?
cout.fill ('*'); cout.width (10); cout<<15.45 <<endl; cout.fill ('*'); cout.setf ( ios::showpoint ); //für den punkt cout.width (10); cout<<116662.7<<endl;
danke.
-
entwicklungsumgebung:
visual studio 6.0
-
Wahrscheinlich steht precision auf 6.
-
danke, es war der richtige hinweis, jetzt geht es