home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.tek.com!vice!bobbe
- From: bobbe@vice.ICO.TEK.COM (Robert Beauchaine)
- Newsgroups: comp.lang.pascal
- Subject: Re: Storage of Microsoft Reals.
- Keywords: Real,Microsoft,TurboPascal
- Message-ID: <10746@vice.ICO.TEK.COM>
- Date: 12 Nov 92 20:59:27 GMT
- Article-I.D.: vice.10746
- References: <Hendrik.Klompmaker.5.721426727@beheer.zod.wau.nl>
- Organization: Tektronix, Inc., Beaverton, OR.
- Lines: 23
-
- In article <Hendrik.Klompmaker.5.721426727@beheer.zod.wau.nl> Hendrik.Klompmaker@beheer.zod.wau.nl (Hendrik.Klompmaker) writes:
- >Hi,
- >
- >A friend asked me about the format of microsoft (quick basic) real in a
- >file. He needs to read a binary file in TP (wich uses IEEE reals) but doesn'
- >t know how the reals are stored. The files are written bye Qbasic.
- >
-
- Both QP and TP (ver. 4+) use the exact same numeric formats. The
- actual type real is a 6 byte number. The IEEE single is 4 bytes,
- the double is 8, extended 10, and comp 8. You need to know which
- format was used, but no conversion between the compilers is
- necessary.
-
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-
- Bob Beauchaine bobb@vice.ICO.TEK.COM
-
- C: The language that combines the power of assembly language with the
- flexibility of assembly language.
-
- Real friends don't let friends use UNIX.
-