www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/23/22:51:45

From: peter AT PROBLEM_WITH_INEWS_DOMAIN_FILE (Peter Gerwinski)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pascal 'single'->C equivelent
Date: 23 Feb 1997 22:48:46 GMT
Organization: Universitaet Essen, Germany
Lines: 27
Message-ID: <5eqhge$p8d@sun3.uni-essen.de>
References: <Pine DOT SUN DOT 3 DOT 95 DOT 970222230557 DOT 10676A-100000 AT linknet DOT kitsap DOT lib DOT wa DOT us> <01bc2195$b48cc7a0$8a081ecb AT sly>
Reply-To: peter DOT gerwinski AT uni-essen DOT de
NNTP-Posting-Host: ascend185.extern.uni-essen.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> KaRNaGE <dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us> wrote in article
> <Pine DOT SUN DOT 3 DOT 95 DOT 970222230557 DOT 10676A-100000 AT linknet DOT kitsap DOT lib DOT wa DOT us>...
> > 
> > i'm converting a pascal program to C and i ran into 'single'
> > does anyone know the range of this kind of variable? ...i'm usuming it's
> > 32bit...but i'm not sure if it's unsigned or signed...i don't have a
> > pascal compiler...

Download GNU Pascal.  It is part of DJGPP, directory v2gnu, files gpc20*.zip.

Sly (sly AT aussie DOT net) wrote:
> Pascal type 'single' is 4 bytes, 'real' is a Pascal-specific type of 6
> bytes,

A *Borland*-Pascal-specific type.  The Pascal languages does not specify
the size of data types.  In GNU Pascal, `Real' has 8 bytes.

> and 'double' is 8 bytes. 
> Delphi also has 'extended' which is ten bytes.

Borland Pascal too.  GNU Pascal has `__long__ Real'; `Extended' is worked on.

    Peter

  Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter DOT gerwinski AT uni-essen DOT de - http://home.pages.de/~peter.gerwinski/ [970201]
       maintainer GNU Pascal - http://home.pages.de/~gnu-pascal/ [970125]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019