Binary Flashcards
Binary - Denary Conversion
Place all of the binary digits into columns, labelled from 1 to 128, going up in powers of 2 from right to left.
Where there are 1s, add the number of the column to the total until you have reached the end of the binary number.
e.g.
10011101
128 64 32 16 8 4 2 1
1 0 1 1 1 1 0 1
=128 + 32 + 16 + 8 + 4 + 1
= 189
Denary - Binary Conversion
Write out the powers of 2 from 1 to 128 from right to left.
Subtract the largest of these that can be subtracted from the number and place a one underneath each column. For any columns that cannot be subtracted from the number, place a zero. Repeat until there is a binary digit in each of the columns.
e.g.
37
128 64 32 16 8 4 2 1
0 0 1 0 0 1 0 1
= 00100101
Binary
This means base 2.
It uses only 1s and 0s.
Each binary digit is called a bit.
Nibble
4 bits
Byte
8 bits
B
Kilobyte
1000 bytes
or 8000 bits
KB
Megabyte
1000 Kilobytes
or 1 million bytes
or 8 million bits
MB
Gigabyte
1000 Megabytes or 1 million Kilobytes or 1,000,000,000 bytes or 8,000,000,000 bits GB
Terabyte
1000 Gigabytes or 1 million Megabytes or 1,000,000,000 Kilobytes or 1,000,000,000,000 Bytes or 8,000,000,000,000 bits TB
Petabyte
1000 Terabytes or 1 million Gigabytes or 1,000,000,000 Megabytes or 1,000,000,000,000 Terabytes or 1,000,000,000,000,000 bytes or 8,000,000,000,000,000 bits PB
Hexadecimal
Base 16
Denary - Hex Conversion
Divide the denary number by 16.
The integer produced is the left number.
The remainder become the right character.
For remainders 9 to 15, place a letter A to F as the right character.
For remainders 1 to 9, place the equivalent number.
Hex - Denary Conversion
Convert the right chracter to a number.
Multiply the left number by 16.
Add the converted number to the product.
Binary - Hex Conversion
Split the binary code into two nibbles. Convert each nibble to hex value. Rejoin the values. e.g. 01011010 0101 1010 0101 = 5 1010 = 10 = A 5A
Hex - Binary Conversion
Split the two hex characters Convert each to binary. Rejoin the two nibbles formed. 7C 7 C 7 = 0111 C = 12 = 1100 01111100