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