in Unknown Category
5,606 views
3 votes
3 votes
8-bit 1's complement form of -77.25

a) 01001101.0100

b)01001101.0010

c)10110010.1011

d)10110010.1101
in Unknown Category
5.6k views

4 Comments

explain ??

0
0

what is binary representation of 10?

it is 1010 (not 00010000) ,rt?

how can you check this?

( 1010 )2=1*23+0*22+1*21+0*20 =10

see this link

0
0

Thks   srestha Veteran  .

0
0

2 Answers

2 votes
2 votes
Best answer

For storing a negative decimal number in 1's complement representation, just find the binary representation of the decimal number and find the 1's complement by negating it.

Here, 77 in binary can be found out by: $2^7*0+2^6*1+2^5*0+2^4*0+2^3*1+2^2*1+2^1*0+2^0*1$ which is 01001101

For converting fraction .25 to binary, just multiply the fraction by 2 repeatedly, ignoring the whole number part each time as given below:

$0.25*2=0.5$

$0.5*2=1.0$  We stop, beacause the fractional part has reached 0.

Writing down the whole number parts, we get 01

Therefore, the binary of 77.25 is 01001101.01000... (Any number of trailing zeros doesn't matter)

For any decimal number x, negating its binary representation yields binary representation of -x in 1's complement representation.

Therefore, --77.25 is 10110010.1011 (Any number of trailing 1's doesn't matter)

Answer is (c).

edited by

4 Comments

hmm thanks : )
1
1
@vijaycs I would like to add a point to cross check 2's representation so that U never get a wrong ans.

 Always verify the ans by checking the weighted code property of 2's complement representation(MSB weight is -ve rest are +ve).

 Here we will get -128+50+.75=-77.25
1
1
Thank you very much bro : )
1
1
1 vote
1 vote

Conecpt :- Suppose i want 1's and 2's complement representation of -5 then 

step1:-> write +5 as signed no.=0101

step2:->1's of(+5)=1010= 1's  complement representation of -5

step3:->2's of(+5)=1011=2's complement representation of -5

Similarly here i want 1's and 2's complement representation of -77.25 then 

step1:->write +77.25 as signed no.=0100 1101.0100 

step2:->1's of(+77.25)=1011 0010.1011= 1's  complement representation of -77.25 //Hence Option C is Ans

step3:->2's of(+77.25)=1011 0010.1100=2's complement representation of -77.25

http://stackoverflow.com/questions/15463491/how-to-represent-a-negative-number-with-a-fraction-in-2s-complement/39446894#39446894

1 comment

Why you didnt change binary digit of left side of decimal
As you did in -5
0
0

Related questions