- ios[meta header]
- std[meta namespace]
- function[meta id-type]
namespace std {
ios_base& noshowpoint(ios_base& str);
}
浮動小数点数出力時に小数点を不要なら出力させないことを指示するマニピュレータ。
str.unsetf(std::ios_base::showpoint)
を実行する。
実引数のstrオブジェクト。
#include <iostream>
#include <iomanip>
int main()
{
std::cout << std::showpoint << std::setprecision(1);
std::cout << 1. << ' ' << 1.e+100 << std::endl;
std::cout << std::noshowpoint;
std::cout << 1. << ' ' << 1.e+100 << std::endl;
}
- std::noshowpoint[color ff0000]
- std::showpoint[link showpoint.md]
- std::setprecision[link /reference/iomanip/setprecision.md]
1. 1.e+100
1 1e+100
- C++03