标签:
float xiaoshu=0.0000000000000000000000000000000000000000000001;
cout<<"xiaoshu"<<xiaoshu<<endl;
double xiaoshu1=0.0000000000000000000000000000000000000000000001;
cout<<"xiaoshu1"<<xiaoshu1<<endl;
结果分别为0和11e-046
float xiaoshu=0.000000000000000000000000000000000000000000001; cout<<"xiaoshu"<<xiaoshu<<endl; double xiaoshu1=0.000000000000000000000000000000000000000000001; cout<<"xiaoshu1"<<xiaoshu1<<endl;
结果分别为1.4013e-045和11e-45(前后两端代码仅差一个0)
标签:
原文地址:http://www.cnblogs.com/halosus/p/5663465.html