0

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?

C. Wang
  • 2,516
  • 5
  • 29
  • 46

0 Answers0