devxlogo

Switching Between Fixed and Scientific Notation

Switching Between Fixed and Scientific Notation

By default, iostream objects are set to display floating point values in fixed notation. To change this, you apply the ‘scientific’ manipulator to an output stream object:

 #include using namespace std;int main(){ double f = 0.1; cout

size=3>

devx-admin

Share the Post: