Binary, Denary and Hexadecimal Flashcards
What do computers work in?
Binary
How do we convert Binary to Denary?
Binary has just two units, 0 and 1. The value of each binary place value is calculated by multiplying the previous place value by two. The first eight binary place values are:
128 64 32 16 8 4 2 1
What is 64 in Binary?
01000000
How do we do Denary to Binary?
To convert from denary to binary, start by subtracting the biggest place value you can from the denary number, then place a 1 in that place value column.
What are the rules for adding in Binary?
0 + 0 = 0
1 + 0 = 1
1 + 1 = 11 (binary for denary 3)
Binary addition Example –>
adding 01 + 10
1 + 0 = 1
0 + 1 = 1
Binary addition: 0 1 plus 1 0 equals 1 1
Result in binary: 11 (which is denary 3)
Whats an overflow error?
Overflow occurs when the result of a calculation requires more bits (place values) than are in the available range.
What is Hexadecimal?
Hexadecimal also known as hex, is the third commonly used number system. It has 16 units (0-9) and the letters A, B, C, D, E and F.
What number do we go up to before we turn to letters
1001 (9)
What are Binary Shifts?
Binary numbers are multiplied and divided through a process called shifting.
Whats the rule for multiplying binary shifts?
to multiply by two, all digits shift one place to the left
to multiply by four, all digits shift two places to the left
to multiply by eight, all digits shift three places to the left
and so on
Whats the rule for dividing binary shifts?
to divide by two, all digits shift one place to the right
to divide by four, all digits shift two places to the right
to divide by eight, all digits shift three places to the right
and so on
What does ASCII use?
Seven bit, giving a character set of 128
What does the ASCII table look like?
32 control codes (mainly to do with printing)
32 punctuation codes, symbols, and space
26 upper case letters
26 lower case letters
numeric digits 0-9
What is Extended ASCII
256 bits but uses letters like spanish and foreign letters