cout: how to display float number, ios::showpoint, ios::showpos
#include <iostream> using namespace std; int main() { cout.setf(ios::showpoint); cout.setf(ios::showpos); cout << 100.0; return 0; }