[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
long double in gcc and g++
From: |
Sebastian Canagaratna |
Subject: |
long double in gcc and g++ |
Date: |
Thu, 16 Aug 2001 15:04:36 -0400 |
User-agent: |
Mutt/1.3.18i |
Hi:
I am using gcc and g++ 2.95, Debian and a Pentium III.
I am having problems with using long double.
1. When I declare something as long double, there is no complaint
from the compiler. But when I try to print it out using
%LE the number of significant figures is the same as for double.
The sizeof(variable) gives 12, implying 96 bits are being used.
Why then are all significant figures not being printed?
2. Though the compiler does not complain about long double, it does
not recognize the long constants M_PIl and M_LN10l defined in math.h.
How does one use these constants. I have a calculation which
requires the use of long doubles.
Thanks for any suggestions. I do not belong to the list, so please
send a copy to s-canagaratna@onu.edu.
Sebastian.
--
Sebastian Canagaratna
Department of Chemistry
Ohio Northern University
s-canagaratna@onu.edu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- long double in gcc and g++,
Sebastian Canagaratna <=