www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/23/11:28:59

From: "Sly" <sly AT aussie DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pascal 'single'->C equivelent
Date: 23 Feb 1997 15:23:41 GMT
Organization: Sly
Lines: 23
Message-ID: <01bc2195$b48cc7a0$8a081ecb@sly>
References: <Pine DOT SUN DOT 3 DOT 95 DOT 970222230557 DOT 10676A-100000 AT linknet DOT kitsap DOT lib DOT wa DOT us>
NNTP-Posting-Host: max0ppp08.bne.aussie.net
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...so can someone that knows what 'single' is please tell
> me....thankz...
> 
> 
> 

Pascal type 'single' is a single-precision floating point variable.  32
bits.  Should be comparable to the C type 'float'.

Pascal type 'single' is 4 bytes, 'real' is a Pascal-specific type of 6
bytes, and 'double' is 8 bytes.  Delphi also has 'extended' which is ten
bytes.

-- 

TTFN
Sly (Steve)

- Raw text -


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