Mail Archives: djgpp/1997/02/23/22:51:45
> 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 -