实施类型“长双”与GCC和C ++ 11 [英] Implementation of type "long double" with GCC and C++11
本文介绍了实施类型“长双”与GCC和C ++ 11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ubuntu(XUbuntu)Linux上使用GCC时,我已经尝试搜索关于long double的信息。到目前为止,我了解它是由编译器实现的。 12.10我得到这个:
double PId = acos(-1)
long double PIl = acos(-1);
std :: cout.precision(100);
std :: cout<< PId< sizeof(double)<< :<< PId < std :: endl;
std :: cout<< PI1 sizeof(long double)<< :<< PI1 < std :: endl;
输出:
code> PId 8:3.141592653589793115997963468544185161590576171875
PIl 16:3.141592653589793115997963468544185161590576171875