Number of precision digits for double in C++ different in windows and Linux. Why? Linux shows more than 20 non-zero precision digits

后端 未结 4 1591
[愿得一人]
[愿得一人] 2021-01-12 20:24

Just did this:

double val1=numeric_limits::max();
cout.precision(70);
cout<<\"\\nVal1: \"<

In Windows I sta

4条回答
  •  被撕碎了的回忆
    2021-01-12 20:57

    I think you have installed g++ 32 bit version on windows, and 64 bit on linux. Just verify the program you are running, if it's 32 or 64 bit (you can check it by watching in task manager)

提交回复
热议问题