From: "D Lee" Newsgroups: comp.os.msdos.djgpp Subject: Re: Longer than double? Date: 16 Oct 1998 20:01:52 GMT Organization: Defence Evaluation & Research Agency Message-ID: <01bdf93f$d2063540$d00a5092@david_lee> References: <706vqe$op9$1 AT news DOT interlog DOT com> NNTP-Posting-Host: 146.80.10.208 X-Newsreader: Microsoft Internet News 4.70.1162 Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Guruman wrote: > > Are there any add-on packages (or hacks) for DJGPP that provide > extra-large precision functionality? I have seen products of this nature for > other compilers, but wouldn't know where to begin modifying them to support > DJGPP. > The last chapter of the book "Numerical Recipes in C" deals with arithmetic at arbitary precision. The authors give C-code to carry out arithmetic operations on numbers base 255, represented as character strings. They also present an example program to return pi to arbitary precision (thousands of decimal digits). I have just compiled this using DJGPP/RHIDE and it seems to work well. There is an on-line version of "Numerical Recipes" at http://www.nr.com David