HEX Conversion Help

Miscellaneous Forums/General Discussion/HEX Conversion Help

IEEE single-precision floating point number from HEX to Decimal. Help!

C0AE0000

1100 0000 1010 1110 0000 0000 0000 0000

1 10000001 01011100000000000000000

10000001 = 129, 129 - 127 = 2

-1.010111 x 2^2 = -101.0111 = -5. ??? <--- Here is my problem. I can't recall how to conver this part.

Thanks,

I don't really understand the IEEE stuff, but I do recall being taught the following many moons ago...
-5.[(0 * 0.5) + (1 * 0.25) + (1 * 0.125) + (1 * 0.0625)] = -5.4375

??

Thats Binary to decimal

Anyway its 7/16

So yes .4375

Hey guys. Thanks for the quick replys.

@H&K - It started at C0AE0000.

Keep in mind on most systems, floating point binary uses 2's compliment and has a sign bit. Also, where the fraction, as I call it, begins and where the exponent end depend on how many bits the floating point numbers use for that system. For instance, on 64bin floating point numbers there ususally a sign bit, 11bits for the exponent and 54bits for the fraction, with a 1024 bias for determining where the decimal is.

Keep in mind on most systems, floating point binary uses 2's compliment and has a sign bit

Hummmm that probably explains why the anwser was -5.4375 (If you looksee, theres this little - symbol in frount of the numbers, thats for the sign, in this case negative)

Do you happen to know exactly what "IEEE single-precision floating point number" means? Cos Ive forgotten, why dont you post the definition? That would be helpfull

Oh, sorry. I didn't notice that that was mentioned. It's 32bit in that case, by the IEEE standard. 64bit would have been double-precision. My mistake.