Binary numbers Flashcards
How do you convert a decimal into a normalised floating point number?
- Multiply the number by positive or negative powers of 2 until it’s between -1 and 1, and record what you multiplied it by
- Convert the new number into decimal using -1, 2^-1, 2^-2, up to 2^-9
- Write the result of Step 2 in front of the result of Step 1
What are the advantages and disadvantages of using fixed-point binary numbers?
Advantages: Processing is faster, absolute error is consistent
Disadvantages: Limited range and precision due to fixed binary point location
What are the advantages and disadvantages of using floating-point binary numbers?
Advantages: Superior range and precision due to flexibility of binary point
Disadvantages: Absolute error varies
How do parity bits work?
A parity bit, also known as a check bit, is a single bit that can be appended to a binary string. It is set to either 1 or 0 to make the total number of 1-bits either even (“even parity”) or odd (“odd parity”).
How does majority voting work?
When using majority voting, each bit of the data is transmitted multiple times. When the data is received, the most commonly occurring value is taken to be correct. The advantage of majority voting is that data can be corrected