home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6540 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.3 KB

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