Name
dec function — Manipulator for decimal integers
Synopsis
ios_base& dec(ios_base& stream)
The dec
function is a
manipulator that sets the conversion radix to base 10. The function
calls stream.setf(ios_base::dec
,
ios_base::basefield)
and returns
stream
.
See Also
hex function, ios_base::fmtflags type, noshowbase function, oct function, showbase function, num_get
in <locale>
, num_put
in <locale>
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.