cout<<fixed means to output floating point numbers in the usual way

 

intmain ()
{
     double num=0.00001;
     cout<<num<<endl;
     cout<<fixed;
     cout<<num;
     return 0;
}

The first output is 1e-5

The second time is 0.00001;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325373697&siteId=291194637