5.4 Binary Number Systems Flashcards
Which type of binary can represent negative numbers: signed or unsigned?
Signed
What is the range of decimal numbers that can be represented using unsigned binary with four bits?
0 to 15 (0 to 2^4 - 1)
How many unique bit patterns can be made with 8 bits?
256 (2^8)
Which of the following could be a normalized two’s complement number?
A) 1110110
B) 01101101
C) 00010101
B - Normalised numbers must start with 01 or 10.
Why might fixed-point and floating-point representations of decimal numbers be inaccurate?
Rounding errors can occur in values that cannot be represented exactly by binary.
Which allows for the greatest range of numbers with a given number of bits: fixed-point or floating-point?
Floating-point
Why are floating-point numbers normalized?
To provide the maximum level of precision for a given number of bits.
What error occurs when a number is too large to be represented with the available bits?
Overflow
How is absolute error calculated ?
given value - actual value.
How is Relative error calculated ?
relative error = actual value/
absolute error