From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Significant Digits Date: Tue, 14 Apr 1998 18:21:53 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 30 Message-ID: <3533E181.914@cs.com> References: <35338A5C DOT D17E22CA AT e-z DOT net> NNTP-Posting-Host: ppp203.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Albert Bae wrote: > > Hello, > > I am making a program that needs high precision because it has to > numerically integrate a function twice. I beleive that the double data > type only gives 7 significant figures. 7 sig. figs. cause a round off > error that is to large to be acceptable as an output for my program. I > was wondering if there was a way of increasing the number of significant > digits that DJGPP can handle. If I have made any mistakes in what I > have said please feel free to correct me. I appreciate any help that > you can give. Type double should have a lot more than seven significant digits! Check to make sure that you've: - prototyped the math functions by including math.h - linked with the math library ('-lm') - not used any code that implicitly demotes double to float If none of this helps, you could try using 'long double', or maybe even post some sample code and the (incorrect) results you get from it. -- --------------------------------------------------------------------- | John M. Aldrich | "A woman is not property, and hus- | | aka Fighteer I | bands who think otherwise are living | | mailto:fighteer AT cs DOT com | in a dreamworld." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------