I have the following code,
int main(int argc, char const *argv[])
{
float x = 99999999 - 2;
cout << "x: " << x << endl;
return 0;
}
cout
outputs 1e+08
instead of 99999997
. Why?
I have the following code,
int main(int argc, char const *argv[])
{
float x = 99999999 - 2;
cout << "x: " << x << endl;
return 0;
}
cout
outputs 1e+08
instead of 99999997
. Why?