Binary arithmetic Flashcards
1
Q
What are the golden rules of binary arithmetic?
A
0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 carry the 1
1 + 1 + 1 = 1 carry the 1
2
Q
What is overflow?
A
When the result of the calculation is to big for the space allocated
3
Q
How does a computer handle overflow error?
A
It can crash and report an overflow error
It can truncate
It can wrap the number back to 0