Chapter 25 - The Binary Number System Flashcards
Define Two’s Complement
A method of working with signed binary values
How do you add / subtract Two’s Complement numbers?
Just add as normal.
Calculate binary equivalent of positive number, calculate binary equivalent of negative number, then add together.
What is fixed point?
Where the decimal / binary point is fixed within a number.
What is floating point?
Where the decimal/binary point can move within a number.
What are the advantages of using floating point?
- much wider range of numbers can be produced with the same number of bits as the fixed point system
- floating point lends itself to applications where a wide range of values may need to be represented.
What are the advantages of using fixed point?
- Any hardware configured to work with integers, can be used on reals; this makes fixed point faster than floating as there is no processing required to move the binary point.
- Absolute error will always be the same meaning precision is retained albeit within a more limited range.
- Suited to applications where is speed is more important than precision
- Suited to applications where an absolute level of precision is required
What is signed binary?
Binary with a positive or negative sign.
What is overflow and underflow?
Overflow is when a number is too large to be represented with the number of bits allocated.
Underflow is when a number is too small to be represented with the number of bits allocated.
What is the mantissa and exponent?
Mantissa is the significant digits that make up a number
Exponent is the ‘power of’ part of a number indicated how far a binary point should be shifted left or right.