TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: BOB DUNNELL
from: LAWRENCE GORDON
date: 1996-07-02 22:55:00
subject: Reading Pascal Files

Quoting Bob Dunnell to Lawrence Gordon:
 BD>              name,                      {31 bytes}
 BD>              address : string[30];      {31 bytes}
 BD>              salary        : real;      {6  bytes}
 BD>              married       : boolean;   {1  byte}
 BD>              num_children  : byte;      {1  byte}
 BD>     end;                                {70 bytes}
 LG> 
 LG> I had a problem converting this construct over to PB.  In PB, single
 LG> precision  reals are 4 bytes; double precision reals are 8 bytes. 
 LG> There isn't an  equivalent 6 byte real in PB.
 BD> 
 BD> Ah.  Well, perhaps you could do some rather nasty work with it.
I'm trying to avoid that. :)
 BD> 
 BD> I think I can determine the exact method used to create the real
 BD> number, and from there it's just some funky math to get it back
 BD> from an integer (as it's stored, as all reals REALLY are) to a real.
 
Please let me know when you have it ready. 
___ Blue Wave/QWK v2.12
--- InterEcho 1.18
---------------
* Origin: Toast House * (314) 994-0312 * (1:100/560)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.