Sets the
basefield
format flag for the
str
stream to
dec
.
When basefield is set to dec , integral numerical values inserted into the stream are expressed in decimal base (i.e., radix 10). For input streams, extracted values are also expected to be expressed in decimal base when this flag is set.
The basefield format flag can take any of the following values (each with its own manipulator):
For standard streams, the basefield flag is set to dec on initialization.
When basefield is set to dec , integral numerical values inserted into the stream are expressed in decimal base (i.e., radix 10). For input streams, extracted values are also expected to be expressed in decimal base when this flag is set.
The basefield format flag can take any of the following values (each with its own manipulator):
flag value | effect when set |
---|---|
dec | read/write integral values using decimal base format. |
hex | read/write integral values using hexadecimal base format. |
oct | read/write integral values using octal base format. |
For standard streams, the basefield flag is set to dec on initialization.