|
showpointmanipulator function
<ios> ios_base& showpoint ( ios_base& str ); Show decimal point Sets the showpoint format flag for the str stream.When the showpoint format flag is set, the decimal point is always written for floating point values insterted into the stream, even for whole numbers. Following the decimal point, as many digits as necessary are written to match the precision internal setting for the stream (if any). This flag can be unset with the noshowpoint manipulator. When the showpoint format flag is not set, the decimal point is only written for non-whole numbers. The precision setting can be modified using the precision() member function of the stream. The showpoint flag is not set in standard streams on initialization. Parameters
Return ValueA reference to the stream object.Example
The execution of this example displays something similar to:
See also
|