Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: retrieving values in binary files

From: greggirwin:mindspring at: 1-Oct-2002 10:27

Hi Hugues, << I'm beginner in Rebol, and I'm trying to retrive values in binary files. These files contain geographical coordinates, stores as doubles (4 or 8 bytes big-endian). I can easily retrieve integer values stored in big-endian or little-endian format, but an don't know how to retrieve floating values stored as floats or doubles in binary format (big-endian or little-endian). Any one do know how thoses values are implmented ? >> I've done integers as well, but not decimals. They're implemented as IEEE 64 bit doubles, but the few things I tried this morning didn't work for getting them out of a file. I.e. to decimal! didn't like them. Maybe submit feeback to RT on it. I don't think we want to be filtering bits in REBOL to do it. :) --Gregg