The Gateway to Computer Science Excellence
0 votes
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?
in CO and Architecture by Junior (751 points)
edited by | 119 views

1 Answer

+2 votes
Best answer

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

 

https://www.youtube.com/watch?v=SFGpN6JOGLU

 

by Active (4.9k points)
selected by
+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

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,644 questions
56,500 answers
195,548 comments
101,003 users