A 4 byte float has the value: 0x7F800000. Its value as a floating point number is?

A 4 byte float has the value: 0x7F800000. Its value as a floating point number is:

a. -39.482
b. +0.0
c. 11.0
d. +Infinity

Hey there, I was hoping to solve another problem but I need help. I was wondering how I would convert the value to the desired answer?

Another question.. what if the 4 byte float was a 8 byte float. How would it make a difference?

Thank you.
closed account (S6k9GNh0)
http://en.wikipedia.org/wiki/Floating_point#IEEE_754:_floating_point_in_modern_computers

If you're pertaining to C/++, look at IEEE 754, Single Precision for a 32-bit (generally 4-byte) float.
Topic archived. No new replies allowed.