CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

more accuracy in C++

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 5, 2003, 03:12
Default more accuracy in C++
  #1
Jen
Guest
 
Posts: n/a
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
  Reply With Quote

Old   January 6, 2003, 06:27
Default Re: more accuracy in C++
  #2
Darcy
Guest
 
Posts: n/a
There's "long double" type for extented precision.
  Reply With Quote

Old   January 6, 2003, 09:31
Default Re: more accuracy in C++
  #3
Steve
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   January 6, 2003, 10:16
Default Re: more accuracy in C++
  #4
HOC
Guest
 
Posts: n/a
see http://www.intap.net/~drw/cpp/cpp03_03.htm

  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid refinement study for Order of accuracy and GCI Chander CFX 5 May 3, 2011 19:13
Accuracy and convergence pawan1989 FLUENT 5 April 15, 2010 17:17
Temporal accuracy ganesh Main CFD Forum 0 February 29, 2008 06:32
accuracy of Discontinuous Galerkin Qu Kun Main CFD Forum 0 September 6, 2004 09:19
time accuracy test nat Main CFD Forum 0 April 1, 2003 23:24


All times are GMT -4. The time now is 21:10.