long double C++的范围是多少 [英] What is the range of the long double C++
本文介绍了long double C++的范围是多少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
C++中long double的范围是多少?
What is the range of long double in C++?
推荐答案
std::numeric_limits<long double>::min()
//...
std::numeric_limits<long double>::max()
long double
的定义是编译器&平台相关,它至少与 double
相同,因此,它可能需要 8、12(通常也是 80 位)甚至 16 个字节(float128/quadruple precision) 并根据其大小有一个范围.
The definition of long double
is compiler & platform dependent, it is at least the same as a double
, thus, it may take 8, 12 (usually also for 80bits) or even 16 bytes (float128/quadruple precision) and has a range according to its size.
这篇关于long double C++的范围是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文