Sets both the uppercase and scientific flags and clears the uppercase flag
#include <iostream> using namespace std; int main() { cout.setf(ios::uppercase | ios::scientific); cout << 1010.112; cout.unsetf(ios::uppercase); // clear uppercase cout << endl << 1100.112; return 0; }