Binary Flashcards
Sign and Magnitude
1 = negative
0 = positive
Does not represent 128 anymore!!
Negative value using Two’s Complement
1) Write out positive number in binary
2) Starting from the right, copy all 0s until you get to the first 1 (keep the first 1 too)
3) Flip each value
Convert a negative binary value to denary
1) Change the last left digit to a - (1)
2) Then add the 1s together and put a - on your answer
0 + 0
0
0 + 1
1
1 + 1
0 carry 1
1 + 1 + 1
1 carry 1
What happens if there isn’t enough room for a result?
Overflow error occurs as there is no room for a carry so the bit is carried to a future calculation
Binary Subtraction
1) Write out first number on top in positive binary
2) Change the second number to its negative equivalent (change first number to a 1)
3) Carry out binary addition on the 2 numbers
Exponent Fractions
1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128 with decimal between the 1 and the 1/2