CFD Online Discussion Forums

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

Jen January 5, 2003 02: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 05:27

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

Steve January 6, 2003 08: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 09: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 23:22.