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

 BD> type
 BD>     employee = record
 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.
 
Ah.  Well, perhaps you could do some rather nasty work with it.
 
I think I can determine the exact method used to create the real
number, and from there it's just some funky math to get it back
from an integer (as it's stored, as all reals REALLY are) to a real.
 
 BD> var
 BD>           salary := 780000.45;
 LG> 
 LG> If I had that salary, I would hire someone to do my programming. :)
 
If I had that salary, heck, I'd move to Idaho and throw all the
electronics out so no one could bug me about it.  (:
 
... rtfm (314) 843-1855
***
 þ Blue Wave/QWK v2.12 þ
--- GEcho/32 1.20/Pro
---------------
* Origin: rtfm 314.843.1855 (1:100/340)

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™.