home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12312 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  870 b 

  1. Path: sparky!uunet!deere!jrh@de.deere.com
  2. From: jrh@de.deere.com (John R. Howell)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Binary File: SGI <-> IBM
  5. Message-ID: <1157@deere.com>
  6. Date: 12 Aug 92 21:56:23 GMT
  7. Sender: usenet@deere.com
  8. Organization: Deere & Company
  9. Lines: 20
  10.  
  11. I have a binary file created with C fwrites and read with C freads.
  12.  
  13. If I create this on an SGI (IRIX) and read it with an IBM RS6000, I seem to
  14. read everything ok, but my floating point numbers don't make sense. If
  15. I go the other way (IBM -> SGI) a similar thing happens.
  16.  
  17. Apparently the integers are read correctly ...
  18.  
  19. OK ... I have apparently stumbled upon a difference in floating point
  20. formats between the different machines.
  21.  
  22. Any idea on how to get around this? I really would like to use these files
  23. "seemlessly" between the different environments.
  24.  
  25. Thanks for any insight you can offer.
  26.  
  27.  
  28. John
  29.  
  30.  
  31.