D
diegoandrade
In this code the exponential part using scientific notation becomes
e+002 is ther a way of changging the number of values after e so they
can appear like e+02, only 2 values instead 3??
I have been thinking a lot about this!!!
any comments
// modify floatfield using manipulators
#include <iostream>
using namespace std;
int main () {
float f;
f=365.25;
cout << fixed << f << endl;
cout << scientific << f << endl;
return 0;
}
The execution of this example shall display:
365.250000
3.652500e+002
e+002 is ther a way of changging the number of values after e so they
can appear like e+02, only 2 values instead 3??
I have been thinking a lot about this!!!
any comments
// modify floatfield using manipulators
#include <iostream>
using namespace std;
int main () {
float f;
f=365.25;
cout << fixed << f << endl;
cout << scientific << f << endl;
return 0;
}
The execution of this example shall display:
365.250000
3.652500e+002