How to store a number 51588284.25 in C/C++?
I failed using float or double , as:
float x = 51588284.25;
cout << x; //5.15883e+07
double y = 51588284.25;
cout << y; //5.15883e+07
Maybe float cannot express this number?
How to store a number 51588284.25 in C/C++?
I failed using float or double , as:
float x = 51588284.25;
cout << x; //5.15883e+07
double y = 51588284.25;
cout << y; //5.15883e+07
Maybe float cannot express this number?