I have seen examples/references/previous questions, but I cannot seem to get my head around some of the cases.
To be more specific, when the numbers is 0x1.MMMMMpEEE
, then I can parse out the mantissa representation, which is MMMMM
and the exponent, which is EEE
and convert them to binary representation. Putting them all together will give me what I want.
However, in cases like 0x8.60a91c16b9b28p-4
or 0x7.ffffffffffffcp-4
, because of the 8
and 7
after the 0x
, how do I parse this hexadecimal mantissa into bit-wise binary representation?