1/8
Represent positive integers in binary. Use of sign and magnitude and two’s complement to represent negative numbers in binary.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
What is the issue with sign and magnitude representation?
There are 2 values for zero. 1000 0000 (-0) and 0000 0000 (+0)
In sign and magnitude representation if the MSB is 1, if the number positive or negative?
negative
In sign and magnitude representation if the MSB is 0, if the number positive or negative?
positive
Convert the denary number -44 into binary using 8 bit sign and magnitude representation
10101100
What is the value of the MSB of a binary number that is n bits long in two’s complement?
-(2^n-1)
What is the value of the MSB for an 8 bit number in two’s complement?
-128 (-2^7)
Steps of fining a negetive number in two’s complement?
Find the positive equivilent
Flip the bits
Add 1
What is the range of values that can be repersented in sign and magnitude for n number of bits
2^(n-1)-1 eg +/1 127 for 8 bits
largest value that can be represented by 8 bit two’s complement
127/01111111