float有效位数

2014-11-23 22:53:51 · 作者: · 浏览: 6

#include

using namespace std;

int main()

{

float a = 2.31111111111;

cout<<(float)a<

float b = 22.221111111111;

cout<

float c = 0.22111111111;

cout<

return 1;

}

2.31111

22.2211

0.221111