Question

1 please

IEEE-754 Floating point conversions problems (assume 32 bit machine): 1. For IEEE 754 single-precision floating point, write

0 0
Add a comment Improve this question Transcribed image text
Answer #1
1)
a)
27.1015625 in simple binary => 11011.0001101
so, 27.1015625 in normal binary is 11011.0001101 => 1.10110001101 * 2^4

single precision:
--------------------
sign bit is 0(+ve)
exp bits are (127+4=131) => 10000011
frac bits are 10110001101000000000000

so, 27.1015625 in single-precision format is 0 10000011 10110001101000000000000
in hexadecimal it is 0x41D8D000

b)
-1.0 in simple binary => 1.0
so, -1.0 in normal binary is 1.0 => 1. * 2^0

single precision:
--------------------
sign bit is 1(-ve)
exp bits are (127+0=127) => 01111111
frac bits are 00000000000000000000000

so, -1.0 in single-precision format is 1 01111111 00000000000000000000000
in hexadecimal it is 0xBF800000

c)
1.0 in simple binary => 1.0
so, 1.0 in normal binary is 1.0 => 1. * 2^0

single precision:
--------------------
sign bit is 0(+ve)
exp bits are (127+0=127) => 01111111
frac bits are 00000000000000000000000

so, 1.0 in single-precision format is 0 01111111 00000000000000000000000
in hexadecimal it is 0x3F800000
Add a comment
Know the answer?
Add Answer to:
1 please IEEE-754 Floating point conversions problems (assume 32 bit machine): 1. For IEEE 754 single-precision...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT