Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用以下内容初始化 long double:
using namespace std; int main(){ long double initial = 0.9999952L; cout << initial << endl; return 0; }
但我得到以下输出:
C:\MinGW\bin>a.exe -1.#QNAN
初始化长双精度的适当方法是什么?