119 views
Consider a modified 8-bit floating point representation in which 1-bit for sign, 3-bit for exponent and 4-bit for significant. What will be representation for decimal value –12?

edited | 119 views

3 bit for exponent means Bias = 2^(3-1) - 1 = 4-1 = 3

12 = 1100 = 1.100 X 2^(3)

Exponent = Bias + 3 = 3+3 = 6 = 110

Significant = 100

Since Significant is 4 bits, we append extra 0 at the end to make it 1000

Here, number is negative so, Sign bit is 1

Thus, final representation = 1 110 1000

by Active (4.9k points)
selected
+1

Agree, I followed the same approach. I think this should be the answer however in made easy solution they took bias as 4 that looks wrong to me (as bias value should be 2$^{(n-1)}$-1 , where n is exponent bit). below is the solution from made easy. Please let me know if I am assuming or doing something wrong here.

0
yes,the value of exponent is wrong in made easy solution