#include <cstdio> int main() { printf("%.2g\n", 186.0); printf("%.2e\n", 186.0); return 0; }
Standard input is empty
1.9e+02 1.86e+02
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!