cout<<fixed表示按一般方式输出浮点数

 

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

第一次输出的是1e-5

第二次为0.00001;

posted @ 2018-05-05 14:38  Somnus、M  阅读(729)  评论(0)    收藏  举报