Bits, Bytes And Number Bases Flashcards
Define Sig Fig (Significant figures) in terms of binary numbers
All digits except leading / trailing 0’s where they are placeholders.
Define a floating point number in terms of binary numbers
a real number represented by a sign, some significant digits and a power of two.
Define precision in terms of binary numbers
The maximum number of significant digits that can be represented in the mantissa. Precise = More bits in mantissa. Range = more bits in exponent.
Define normalisation in terms of binary numbers
Only one digit before the decimal place with an exponent for magnitude. This ensures a unique representation of a number and maximises precision for a given number of bits.
Define absolute error in terms of binary numbers
The magnitude of difference between the actual and rounded number
Define relative error in terms of binary numbers
The absolute error / the actual number
Define underflow in terms of binary numbers
A value is too small to be stored in a given number of bits
Define overflow in terms of binary numbers
A value is too large to be stored in a given number of bits
Define a hexadecimal number
A number using 16 possible characters instead of just the 10 (0-9) we use for base 10 (decimal number system)
Define a binary number
A number using 2 possible character instead of the 10 we use for the decimal number system.
Explain how to convert a binary number to a decimal number.
Create a table with each character of the binary number as a column. Multiply each row from right to left by 2^n where n starts at 0 and add all the answers together
Explain how to convert a decimal number to a hexadecimal number.
Create a table with each character of the decimal number as a column. Multiply each row from right to left by 16^n where n starts at 0 and add all the answer together
Explain how to convert a binary number to a hexadecimal number
split the binary number into 4 character numbers (nibbles) and convert each nibble into a hexadecimal digit as each 4 character binary number has a maximum value of 15 or F in hexadecimal. Then just join the digits together and create the hexadecimal number.
Explain how binary multiplication works
Split one of the two numbers into the parts that involve 1. For example, if you are multiplying 10101 by 10001, it would be the same as multiplying 10101 * 10000 + 10101 * 1.
Explain how a negative binary number works
They create a complement of a positive number by using the most significant digit as the negative form of itself.