what decimal numb is represented by these 2scomplement binar

what decimal numb is represented by these 2scomplement binary numbers

1.) 1111 1111 1111 1111 1111 1110 000 1100

2.) 0111 1111 1111 1111 1111 1111 1111 1111

3.) 7fff fffa (hex)

Solution

1)1111 1111 1111 1111 1111 1110 000 1100

1111 1111 1111 1111 1111 1110 0000 1100
- 0000 0000 0000 0000 0000 0001 1111 0011
----------------------------------------------------------------
0000 0000 0000 0000 0000 0001 1111 0011

so the binary value is 0001 1111 0011 by converting in to decimal we will get -499 because
the binary complement number starts with 1 it means it is a negative number

2. 0111 1111 1111 1111 1111 1111 1111 1111

0111 1111 1111 1111 1111 1111 1111 1111
1000 0000 0000 0000 0000 0000 0000 0000
------------------------------------------------------------------
1000 0000 0000 0000 0000 0000 0000 0000


so the binary value is 1000 0000 0000 0000 0000 0000 0000 0000 by converting in to decimal we will get 2147483648 because
the binary complement number starts with 1 it means it is a negative number and whenit start with 0 it is positive

what decimal numb is represented by these 2scomplement binary numbers 1.) 1111 1111 1111 1111 1111 1110 000 1100 2.) 0111 1111 1111 1111 1111 1111 1111 1111 3.)

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site