Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!rutgers!gatech!emory!platt From: platt@emory.uucp (Dan Platt) Newsgroups: comp.lang.pascal Subject: Re: Multiprecision integer routines for PC Pascal Message-ID: <2167@emory.uucp> Date: Mon, 6-Jul-87 12:04:43 EDT Article-I.D.: emory.2167 Posted: Mon Jul 6 12:04:43 1987 Date-Received: Tue, 7-Jul-87 05:13:27 EDT References: <8160@brl-adm.ARPA> Reply-To: platt@emory.UUCP (Dan Platt) Organization: Math & Computer Science, Emory University, Atlanta Lines: 22 Keywords: MS Pascal In article <8160@brl-adm.ARPA> WYLER@C.CS.CMU.EDU (Oswald Wyler) writes: >Since I find it intolerable not to be able to do 200*200 in Pascal, I am >writing procedures ... >procedures in Pascal programs. Two questions: >1. ... >2. My code is geared to Turbo Pascal, I would like them to work for MS >Pascal as well. >Any help will be appreciated. Oswald Wyler [Wyler@c.cs.cmu.edu] In MS Pascal, there is an integer4 type which has a range from 2^31-1 to -2^31. This type isn't considered ordinal (can't be used to index an array, as the control index in a for statement or in a switch statement). Conversion to regular integer requires the function ord to get an integer value from integer4 (will retrieve the lower 2 bytes otherwise). Also, there is both standard and double precision reals available in MS pascal (not available simultaneously in turbo), and it will allow procedures and functions to be passed as parameters (not legal in turbo). In other words, a lot of the things that are a problem in turbo are no problem in ms. Dan