Article View: comp.lang.pascal.borland
Article #280Re: RTE200 - not Delay!
From: Frank Peelo
Date: Mon, 14 Jun 1999 00:00
Date: Mon, 14 Jun 1999 00:00
22 lines
1130 bytes
1130 bytes
Robert AH Prins wrote in message <7k34er$qcn$1@nnrp1.deja.com>... >const > a: longint = $80000000; > b: longint = -1; > >begin > writeln(a div b); >end. > >Any clues as to how to get rid of this one? $80000000 is the largest negative number that a LongInt can hold, ie -MaxLongInt-1 If you multiply or divide it by -1 you get MaxLongInt+1 which will not fit in a LongInt. Are you sure LongInt is appropriate for what you are doing? FP
Technical Details
Message-ID:
<7k3adq$ci3$1@ezekiel.eunet.ie>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7k34er$qcn$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111659,9ab1c9cdd12e03da X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,9ab1c9cdd12e03da X-Google-Attributes: gid108ebd,public From: "Frank Peelo" <fpeelo@indigo.ie> Subject: Re: RTE200 - not Delay! Date: 1999/06/14 Message-ID: <7k3adq$ci3$1@ezekiel.eunet.ie> X-Deja-AN: 489487491 Content-Transfer-Encoding: 7bit References: <7k34er$qcn$1@nnrp1.deja.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: EUnet Ireland customer Mime-Version: 1.0 Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal