Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::showpoint

 

std::showpoint is an STL stream manipulator to show the zeroes behind the comma of a double.

 

 

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

 

Screen output:

 

1
1.000000000

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml