From: Maurice Lombardi Newsgroups: comp.os.msdos.djgpp Subject: Re: VERY long numbers (and i mean... VERY!!!) Date: Sun, 13 Feb 2000 18:56:58 +0100 Organization: Universite Joseph Fourier - Grenoble 1 Lines: 29 Message-ID: <38A6F06A.6C430CE7@ujf-grenoble.fr> References: <20000211112031 DOT 19889 DOT qmail AT web122 DOT yahoomail DOT com> NNTP-Posting-Host: knautie.ujf-grenoble.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: amazone.ujf-grenoble.fr 950464764 46347 193.54.234.27 (13 Feb 2000 17:59:23 GMT) X-Complaints-To: abus AT ujf-grenoble DOT fr NNTP-Posting-Date: 13 Feb 2000 17:59:23 GMT X-Mailer: Mozilla 4.7 [fr] (Win98; U) X-Accept-Language: fr,it,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com fred smith a écrit : > > Mohamed Saad wrote: > : is there a djgpp unit for representing VERY large > : numbers??? > There are several multiple-precision (and/or arbitrary-precision) > math libraries around. The one that comes to mind at the moment is > GMP from the GNU folks (www.gnu.org). What I don't know is if anyone > has done a DOS version of it, or how hard it would be. But if it can > be made to compile/run on DOS it'll do what you want, i.e., arithmetic > on arbitrarily long numbers. a precompiled binary for djgpp v2 can be found at ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/libs/binary/i386-pc-go32/gmp-2.0.2-i386-pc-go32.zip It contains libgmp.a gmp.h and info files ready to unzip into proper places in your djgpp tree (only a manifest file is missing). Don't worry about gnu-pascal if you are writing C/C++: this is a C library, and pascal developpers have only added a pascal interface to enable to use it in pascal programs (not included in the above mentioned file). Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr