[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

floating point hex calc?



I'm debugging something where I'm looking at floating point data in memory in hexadecimal and want to know what the floating point values of the numbers would be.

Because a float is a little data structure with the exponent, mantissa and all, it's a little hard to tell what the values are just by looking at them.

I normally use calctool as a hex calculator, and it's nice when dealing with integers, but I can't type a raw hexadecimal integer into it and find out what its floating point equivalent is.

Is there something like what I want for debian, or if not is there something I can compile from source?

If I were using gdb to debug, I could probably cast a memory address as a float* and have gdb do the conversion. But the software I'm debugging is actually running on Mac OS 9, and I'm using the MacsBug assembly debugger. It can format various data types from a memory address, but unfortunately doesn't seem to be able to handling floating point the way I want.

Thanks,

Mike
--
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com/
crawford@goingware.com

     Tilting at Windmills for a Better Tomorrow.



Reply to: