in reply to Re: Unpacking extended-double precision floats
in thread Unpacking extended-double precision floats
I'm reading a binary file. Part of the file consists of 10-byte sequences that are clearly floats, probably IEEE extended-double-precision floats. I'm looking to be able to convert to unpack that to a numeric value and pack it to a 10-byte sequence.
That is, unpack 0x4001c888888888888888 to 12.5 (if I'm remembering actual data correctly), and pack 12.5 back to 0x4001c888888888888888.
I may just resort to picking the bits apart and converting it myself. I'm not sure if my C compiler (gcc on Mac) does that particular datatype. I can afford to simply do the bit-slinging myself, if it comes to that. I was just hoping to find that someone else has already solved the problem. So far, no joy.
update: added more words to clarify
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unpacking extended-double precision floats
by ikegami (Patriarch) on Nov 29, 2006 at 18:43 UTC | |
by Anonymous Monk on Nov 29, 2006 at 20:31 UTC | |
by herveus (Prior) on Nov 30, 2006 at 12:35 UTC | |
by Fengor (Pilgrim) on Nov 30, 2006 at 13:08 UTC | |
by BrowserUk (Patriarch) on Nov 30, 2006 at 13:28 UTC | |
by herveus (Prior) on Nov 30, 2006 at 13:29 UTC | |
by herveus (Prior) on Nov 29, 2006 at 18:48 UTC |