CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   more accuracy in C++ (http://www.cfd-online.com/Forums/main/5605-more-accuracy-c.html)

Jen January 5, 2003 03:12

more accuracy in C++
 
Hi, there,

How are you doing?

These days I have difficult in the numerical computations. As you know there are the single, double and more accuracy precision in the Fortran. When we are using the C++, it seems that there are only float and double. Is there any way to improve the accuracy during the computation using the C++?

Thank you very much.

Jen

Darcy January 6, 2003 06:27

Re: more accuracy in C++
 
There's "long double" type for extented precision.

Steve January 6, 2003 09:31

Re: more accuracy in C++
 
Although true in most cases, the C++ standard does not REQUIRE long double to be any longer than an ordinary double. Use it at your peril.

HOC January 6, 2003 10:16

Re: more accuracy in C++
 
see http://www.intap.net/~drw/cpp/cpp03_03.htm



All times are GMT -4. The time now is 04:07.