Sets the precision for floating-point values.
T5 setprecision(
streamsize _Prec
);
- _Prec
The precision for floating-point values.
The manipulator returns an object that, when extracted from or inserted into the stream str, calls str.precision(_Prec), and then returns str.
See setw for an example of using setprecision.
Header: <iomanip>
Namespace: std
Reference
Other Resources