Integer Representation Flashcards
1
Q
What is ‘sign and modulus’
A
A method of storing negative numbers which uses the left-most bit to represent the sign. The remaining bits give the modulus or magnitude of the number.
2
Q
In sign and modulus storage, what does a 1 in the leftmost bit represent?
A
A negative number
3
Q
How do you represent a negative number in 1s compliment?
A
You ‘flip’ the bits of the positive binary representation, changing 0s to 1s and 1s to 0s
4
Q
How do you represent a negative number in 2s compliment?
A
You add 1 to the 1s complement of the number.