std::showpoint, std::noshowpoint

Header: <ios>

Enables or disables the unconditional inclusion of the decimal point character in floating-point output. Has no effect on input.

# Declarations

std::ios_base& showpoint( std::ios_base& str );
std::ios_base& noshowpoint( std::ios_base& str );

# Parameters

# Return value

str (reference to the stream after manipulation).

# Example

#include <iostream>
 
int main()
{
    std::cout << "1.0 with showpoint: " << std::showpoint << 1.0 << '\n'
              << "1.0 with noshowpoint: " << std::noshowpoint << 1.0 << '\n';
}

# See also