Lectures 1-4 Flashcards
1
Q
What is the process for converting decimal to two’s complement?
A
- Convert the modulus of the value into standard binary
- If original value is positive, finish
- If value was negative, invert all and add 1
2
Q
What is the process for converting two’s complement to decimal?
A
- Observe MSB (if 1, number is negative)
- If negative, invert all bits and add 1
- Convert binary to decimal
3
Q
What does excess representation use?
A
Bias
4
Q
What is the process for converting decimal into excess representation binary?
A
- Add the bias to the value which we want to represent
- Convert this to binary
- Done
5
Q
What is the process for converting excess representation binary to decimal?
A
- Convert from binary to its decimal equivalent
- Take away bias from the decimal