Name
setprecision function — Sets precision
Synopsis
manip_t
setprecision(int n)
The setprecision
function
template sets the output precision for a stream to n
. In other words, it performs the
equivalent of stream
.precision(n)
.
See Also
ios_base
in <ios>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.