Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!tim From: tim@walt.cc.utexas.edu (Tim Eakin) Newsgroups: comp.lang.pascal Subject: Using multiple precision integers in Pascal Keywords: long integers, multiple precision library Message-ID: <35346@ut-emx.UUCP> Date: 7 Aug 90 03:42:12 GMT Sender: news@ut-emx.UUCP Reply-To: tim@walt.cc.utexas.edu (Tim Eakin) Organization: The University of Texas at Austin, Austin, Texas Lines: 18 I am wondering if there is some pascal library, equivalent to the mp library for C (libmp.a), that can accomodate multiple precision arithmetic. The only operations I need are addition/subtraction and multiplication, but I need arbitrary precision that extends past 16 byte integers (>37 decimal digits). If I have to construct a complicated long integer data type and the code for doing the the algebraic manipulation myself, I might as well invest the time in re-coding the application for which it is needed in C, and then use the mp library directly. Alternatively, if anyone has linked the mp library to a Pascal program successfully, could you please let me know what is necessary besides an include statement -- e.g., how to declare the multiple precision integer variables in a var statement, etc.? I have access to using either the pc compiler on a Sun OS 4.0 or the Domain PASCAL on an Apollo SR 10.2. Thanks !! Tim tim@walt.cc.utexas.edu