Question

What's the decimal value of the following 8 bit floating point number? Suppose k=4 exponent bits,...

What's the decimal value of the following 8 bit floating point number? Suppose k=4 exponent bits, n=3 fraction bits, and the bias is 7

00111001

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: 1.125

Explanation:

k=4; exponent bits,

n=3; fraction bits

Given number is 0 0111 001

Exponent is 01112 = 710

Decimal Equivalent is 1.fff * 2exponent-bias

Positive since the sign bit is 0

The number is 1.001 * 27-7 = 1.001

1.12510

Add a comment
Answer #2

The given floating-point number is in the following format:

yamlCopy code0 0111 0010

Here, the sign bit is 0 which represents a positive number. The exponent bits are 0111 which represent the decimal value 7. The fraction bits are 001 which represent the binary fraction 0.001.

To calculate the decimal value, we use the following formula:

scssCopy code(-1)^s * (1 + f) * 2^(e-b)

where s is the sign bit, f is the fraction bits, e is the exponent bits, and b is the bias.

Substituting the values, we get:

scssCopy code(-1)^0 * (1 + 0.001) * 2^(7-7)
= 1.001 * 1= 1.001

Therefore, the decimal value of the given floating-point number is 1.001.

answered by: Hydra Master
Add a comment
Know the answer?
Add Answer to:
What's the decimal value of the following 8 bit floating point number? Suppose k=4 exponent bits,...
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