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,466
  • 4
  • 28
  • 39

0 Answers0