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
In reply to Re^2: Unpacking extended-double precision floats
by herveus
in thread Unpacking extended-double precision floats
by herveus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |