f = 8.0; cout << f << showpoint << " with showpoint " << f << endl; Produces 8 with showpoint 8.00000