home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15532 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.7 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!uwm.edu!rutgers!flop.ENGR.ORST.EDU!news.orst.edu!brindley
  2. From: brindley@maxwell.ECE.ORST.EDU (Mike Brindley)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help - IFF files used to store DOUBLES
  5. Message-ID: <BxEsyo.5I7@news.orst.edu>
  6. Date: 8 Nov 92 18:06:22 GMT
  7. References: <1992Oct27.142015.2635@brandonu.ca> <shf.720953994@well.sf.ca.us>
  8. Sender: usenet@news.orst.edu
  9. Organization: Society for Putting Things on Top of Other Things
  10. Lines: 24
  11. Nntp-Posting-Host: maxwell.ece.orst.edu
  12.  
  13. In article <shf.720953994@well.sf.ca.us> shf@well.sf.ca.us (Stuart H. Ferguson) writes:
  14. >In <1992Oct27.142015.2635@brandonu.ca> brycerw@brandonu.ca writes:
  15. >> [...]  What is the best format to store DOUBLES in an IFF
  16. >>file to maintain consistency in machine-independence.  These files will
  17. >>inevitably be used on PC's, and vax's, as well as other amigas.
  18. >
  19. >I would use IEEE, since this is a published and common standard.  I believe
  20. >the DR2D format stores IEEE single precision floats.  Unless you need the
  21. >*super* precision of doubles, I would just write singles.  Since you are
  22. >using a math co-processor on your Amiga, the values in memory are IEEE format,
  23. >so you can just dump the bits directly and get a machine-independent
  24. >file.                                            ^^^^^^^^^^^^^^^^^^^
  25.  
  26. Are you sure that you will get a platform independent disk file?  I know
  27. of one example where the bytes of single precision IEEE f.p. numbers
  28. are stored on disk in the perverse Intel order (least significant byte 
  29. first to most significant byte last).  This format should take a little
  30. bit of byte shuffling to read or produce on a Motorola processor.
  31.  
  32.  
  33.  
  34. -- 
  35. --> Mike Brindley
  36.     brindley@ece.orst.edu
  37.