home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15390 < prev    next >
Encoding:
Text File  |  1992-11-04  |  1.2 KB  |  26 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!spool.mu.edu!uwm.edu!linac!att!cbnewse!cbnewsd!att-out!pacbell.com!well!well.sf.ca.us!shf
  3. From: shf@well.sf.ca.us (Stuart H. Ferguson)
  4. Subject: Re: Help - IFF files used to store DOUBLES
  5. Message-ID: <shf.720953994@well.sf.ca.us>
  6. Sender: news@well.sf.ca.us
  7. Organization: Whole Earth 'Lectronic Link
  8. References: <1992Oct27.142015.2635@brandonu.ca>
  9. Date: Thu, 5 Nov 1992 08:59:54 GMT
  10. Lines: 14
  11.  
  12. In <1992Oct27.142015.2635@brandonu.ca> brycerw@brandonu.ca writes:
  13. > [...]  What is the best format to store DOUBLES in an IFF
  14. >file to maintain consistency in machine-independence.  These files will
  15. >inevitably be used on PC's, and vax's, as well as other amigas.
  16.  
  17. I would use IEEE, since this is a published and common standard.  I believe
  18. the DR2D format stores IEEE single precision floats.  Unless you need the
  19. *super* precision of doubles, I would just write singles.  Since you are
  20. using a math co-processor on your Amiga, the values in memory are IEEE format,
  21. so you can just dump the bits directly and get a machine-independent
  22. file.
  23. -- 
  24.         Stuart Ferguson        (shf@well.sf.ca.us)
  25.             Prepare to Surge to Sublight Speed!
  26.