Set cout format: ios::showpoint | ios::uppercase | ios::scientific
#include <iostream> using namespace std; int main() { cout.setf(ios::showpoint | ios::uppercase | ios::scientific); cout << 100.0; return 0; }