setprecision
Sets the precision for floating-point values.
T5 setprecision(
streamsize _Prec
);
Paramètres
- _Prec
The precision for floating-point values.
Valeur de retour
The manipulator returns an object that, when extracted from or inserted into the stream str, calls str.precision(_Prec), and then returns str.
Exemple
See setw for an example of using setprecision.
Configuration requise
En-tête: <iomanip>
Espace de noms : std