Top "Long-double" questions

Questions related to `long double` floating-point data-type (numbers) as commonly found in languages like C and C++. Sometimes referred to as quadruple-precision floating-point data-type (numbers).

printf and long double

I am using the latest gcc with Netbeans on Windows. Why doesn't long double work? Is the printf specifier %lf …

c gcc printf long-double
Difference between long double and double in C and C++

Possible Duplicate: long double vs double I am new to programming and I am unable to understand the difference between …

c++ c long-double
long double vs double

I know that size of various data types can change depending on which system I am on. I use XP 32…

c++ floating-point long-double
Long Double in C

I've been reading the C Primer Plus book and got to this example #include <stdio.h> int main(…

c long-double
Why would you use float over double, or double over long double?

I'm still a beginner at programming and I always have more questions than our book or internet searches can answer (…

c++ floating-point double long-double
What is the precision of long double in C++?

Does anyone know how to find out the precision of long double on a specific platform? I appear to be …

c++ precision long-double
long double (GCC specific) and __float128

I'm looking for detailed information on long double and __float128 in GCC/x86 (more out of curiosity than because of …

gcc long-double
How can you easily calculate the square root of an unsigned long long in C?

I was looking at another question (here) where someone was looking for a way to get the square root of …

c unsigned-long-long-int long-double
How do I use the numpy longdouble dtype?

I am trying to work with the np.longdouble dtype in my Python code, and am trying to use NumPy …

python numpy cython long-double
sizeof long double and precision not matching?

Consider the following C code: #include <stdio.h> int main(int argc, char* argv[]) { const long double ld = 0.12345678901234567890123456789012345…

c floating-point precision long-double