1.4.1 (Data types) Flashcards
1
Q
How do you convert binary into sign and magnitude?
A
- The first bit is either a 1 to represent a negative, or a 0 to represent a positive.
2
Q
How to you converts binary into Two’s Complement (2sC)?
A
- Flip the bits
- Add 1
3
Q
Change the following into 2sC: 1011010, 1110110, and 0101110
A
- 0100110
- 0001010
- 1010010
4
Q
How do you subtract 2 binary numbers?
A
- Convert second number into 2sC
- Add them together
5
Q
What do you do if there is an overflow when completing a binary subtraction, and why?
A
- Discard it
- The method is built around the counter to over flow is discarded