CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   more accuracy in C++ (

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.


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++

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