Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the precision for floating-point values.
T5 setprecision(
streamsize _Prec
);
Parameters
- _Prec
The precision for floating-point values.
Return Value
The manipulator returns an object that, when extracted from or inserted into the stream str, calls str.precision(_Prec), and then returns str.
Example
See setw for an example of using setprecision.
Requirements
Header: <iomanip>
Namespace: std