다음을 통해 공유


showpoint

Displays the whole-number part of a floating-point number and digits to the right of the decimal point even when the fractional part is zero.

ios_base& showpoint(
   ios_base& _Str
);

Parameters

  • _Str
    A reference to an object of type ios_base, or to a type that inherits from ios_base.

Return Value

A reference to the object from which _Str is derived.

Remarks

By default, noshowpoint is in effect.

The manipulator effectively calls _Str.setf(ios_base::showpoint), and then returns _Str.

Example

See noshowpoint for an example of using showpoint.

Requirements

Header: <ios>

Namespace: std

See Also

Reference

iostream Programming

iostreams Conventions

Other Resources

<ios> Members