<分区>
我尝试了很多方法:
float a = 1234.34;
float b = 1234.52;
float r = a * b;
cout << r << endl;
float c = 1234.34 * 1234.52;
cout << c << endl;
cout << 1234.34 * 1234.52 << endl;
cout << (float)(1234.34 * 1234.52) << endl;
所有这些似乎都赋予了无限的值(value)..
1.52382e+006
1.52382e+006
1.52382e+006
1.52382e+006
我在这里做错了什么?