std::noshowpoint is an STL stream manipulator to not show the zeroes behind the comma of a double.
#include <iostream> #include <iomanip> int main () { std::cout << std::setprecision(10) << std::showpoint << 1.0 << '\n' << std::noshowpoint << 1.0 << '\n'; }
Screen output: