I'm trying to extract a float value at the current linear address in the IDC script, but I can't figure out how to do this.
Disassembly example:
.rdata:004F8360 flt_4F8360 dd 0.69999999 ; DATA XREF: sub_4071E0+68r
I want to print this float value in the console message like this:
Value: 0.69999999
I've tried (unsuccessfully):
Dword(ea)Message("Value: %f", Dword(ea)); Value: 1.060320051e9GetManyBytes(ea, 4, 0):Message("Value: %f", GetManyBytes(ea, 4, 0)); Value: 3.33e2
So how does one achieves this?