I need to print a floating point number in hex using the IEE standards for a double.
I tried this but it didn't work:
I also tried:Code:double dNum=5.5; printf("%X", dNum);
The second one just printed out the hex for an integer. I looked at the dNum in memory with the debuger and that is what I want. Is there anyway to just copy the exact hex number from memory without converting it back to decimal?Code:double dNum=5.5; printf("%X", (int)dNum);