How can I display this number in E notation? 2315361.84621
Please help, I need the program to display this in E notation.
1 2 3 4 5 6
|
#include <iomanip>
...
double yournumber = /* whatever */;
cout << scientific << yournumber;
|
Thanks very much for the quick reply!
Topic archived. No new replies allowed.