I know that the size of various data types can vary depending on which system I am on. I am using XP 32bits and using the sizeof () operator in C ++, it seems that long double is 12 bytes and double is 8.
However, most major sources claim that long double is 8 bytes, so the range is the same as double.
Where do I get 12 bytes? If a long double really is 12 bytes, doesn't that expand the range of values? Or is a long signature used only (compiler digits) when the value exceeds the range of the double and, therefore, goes beyond 8 bytes?
Thank.
c ++ floating-point long-double
CppLearner Aug 11 '10 at 0:55 2010-08-11 00:55
source share