Number systems Flashcards
1
Q
Describe a method that can, without the use of binary addition, multiply any unsigned binary integer by 2.
A
Logical left shift by 1
2
Q
Describe a method that can, without the use of binary addition, divide any unsigned binary integer by 2.
A
Logical right shift by 1
3
Q
Describe what two’s compliment is
A
The most significant bit is the sign bit (1 for negative, 0 for positive)
4
Q
What are the different types of rounding errors and what do they mean
A
- Absolute error: Difference between the value required and the closest representable value
- Relative error: Absolute error as a percentage of the value required
5
Q
What causes an underflow error
A
The value to be represented is too small for the given number of bits
6
Q
What causes an overflow error
A
The value to be represented is too large for the given number of bits