home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!deere!jrh@de.deere.com
- From: jrh@de.deere.com (John R. Howell)
- Newsgroups: comp.sys.sgi
- Subject: Binary File: SGI <-> IBM
- Message-ID: <1157@deere.com>
- Date: 12 Aug 92 21:56:23 GMT
- Sender: usenet@deere.com
- Organization: Deere & Company
- Lines: 20
-
- I have a binary file created with C fwrites and read with C freads.
-
- If I create this on an SGI (IRIX) and read it with an IBM RS6000, I seem to
- read everything ok, but my floating point numbers don't make sense. If
- I go the other way (IBM -> SGI) a similar thing happens.
-
- Apparently the integers are read correctly ...
-
- OK ... I have apparently stumbled upon a difference in floating point
- formats between the different machines.
-
- Any idea on how to get around this? I really would like to use these files
- "seemlessly" between the different environments.
-
- Thanks for any insight you can offer.
-
-
- John
-
-
-