Question: Manually encode the decimal value 37.625 into an IEEE-754 Single Precision Floating Point value. Express it as a hexadecimal value. Create and run a simple
Manually encode the decimal value 37.625 into an IEEE-754 Single Precision Floating Point value. Express it as a hexadecimal value. Create and run a simple C program to verify your encoding. It's not necessary to submit your test program. Note: you can't print a float value in hex using the %x placeholder. You need to recast it as an int first. You have seen examples of using a union in C to see the same variable from two different perspectives (see a value as a float and as an int in this case) Answer: 0x 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
