SLR11 Signed and Unsigned numbers Flashcards
1
Q
What are the two types of binary:
A
- signed (number could be negative)
- unsigned (number can be either)
2
Q
What rules allows you to convert to signed binary?
A
Twos compliment
3
Q
How do you know if a signed value is negative?
A
It begins with a 1
4
Q
What is the rule for twos compliment?
A
- you flip the number (0 becomes 1 etc)
- you add 1
5
Q
When should you not use two’s compliment?
A
when the number begins with a zero
6
Q
How do you do subtraction of binary numbers?
A
- find 1 number in binary
- find the second number as a native value in binary
- add them together
7
Q
A