Question: Create a C program where numbers are read in from the keyboard using printf with %f and storing the number in a float. You then

Create a C program where numbers are read in from the keyboard using printf with "%f" and storing the number in a float.

You then have to do the following:

Part 1:

Print out the "raw" hex/binary pattern stored in the IEEE 754 float. Check this is correct using a IEEE 754 calculator.

Print out the sign bit of the stored number.

Print out the biased exponent of the number.

Print out the unbiased exponent of the number.

Print out the normalised mantissa of the number without the implied one at the beginning.

Print out the normalised mantissa of the number with the implied one at the beginning.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!