T2 - Binary + Hex Flashcards
1 bit =
a single 0 or 1
1 byte
= 8 bits = 1 character of text
(A nibble =
4 bits or half a byte)
1 kB (kilobyte)
= 1000 bytes
1 MB (megabyte)
= 1000 kB or 1000x1000 bytes
1 GB (gigabyte)
= 1000 MB
1 TB (terabyte)
= 1000 GB
1 PB (petabyte)
= 1000 TB
Total possible combinations
= 2^n
n = number of bits
Most and least significant bits
are the bits with the largest and smallest value
Representing largest integers in binary
Largest number in 8 bit = 2^8 - 1 = 255
Denary to Hex:
Divide the denary number by 16 to get the number of 16s (the left-hand hex digit)
The remainder gives you the units
for hex to denary
Multiply the left-hand digit by 16, then add the units
Pros of Hex:
much simpler to remember
quicker to write or type
less likely to make an error with fewer digits
easy to convert between hex and binary
Overflow error
- When the result of an addition is too large for the number of bits the computer works with there will be an overflow error