Date: Thu, 1 Mar 2001 14:35:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Mr. Veli Suorsa" cc: Djgpp AT delorie DOT com, VJSuorsa AT Surfeu DOT Fi Subject: Re: Fortran / C compiler precision and code pack In-Reply-To: <3a9e3c59.3439.0@surfeu.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 1 Mar 2001, Mr. Veli Suorsa wrote: > >If your problem is with 14.399996 being printed instead of 14.4, > >that's normal: REAL variables only have about 6.5 digits of > >precision. Try using DOUBLE PRECISION instead. > > Thanks, it seems to be ok. > But was it a bug, I have newer seen before in my long life? No, it is not a bug. FWIW, I've seen such cases quite a few times. It is simply a consequence of finite precision of floating-point numbers. > >There's a GNU Pascal compiler on the usual DJGPP sites; look for > >v2gnu/gpc20bb.zip. > > Do you need some help with updating download sites? > > On ftp://ftp.funet.fi/pub/mirrors/simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/00_index.txt > > there was only filenames, not comment like: > > gpc20bb.zip B 1,903,230 001126 > gpc20bbd.zip B 163,398 001116 > gpc20bbs.zip B 2,769,308 001116 Thanks for catching this, I will fix it.