BINARY Toby Wilson
LEARNING OBJECTIVES Be able to convert binary to denary Be able to convert denary into binary Be able to explain how computers use binary
WHAT IS BINARY? A number system that uses two digits, 0 and 1 (Base 2 = 0 & 1) (Base 10 = 0,1,2,3,4,5,6,7,8 & 9)
A BIT A bit is a digit in a binary number It can be either 1 or 0
BINARY NUMBERS 0001 The number above includes 4 bits Each bit is worth a different value They work from right to left In the number, 0 = 8 0 = 4 0 = 2 1 = 1
BINARY TO DENARY CONVERSION Denary is a regular number. Eg 8 To convert a binary number into denary, you add up the value of each bit and there you have your result 1011 =
QUESTION ANSWERS 1010 = 10 0011 = 3 1001 = 9 1111 = 15 = 18 = 187
DENARY TO BINARY CONVERSION This is the opposite of binary to denary This is where you are given a denary number and you need to convert it in to binary Eg. 22 22 – 16 (10000) = 6 6 – 4 (10100) = 2 – 2 (10110) = 0 22 = 10110
QUESTION ANSWERS 13 – 8 = 5 – 4 = 1 – 1 = 0 (1101) 7 – 4 = 3 -2 = 1 – 1 = 0 (111) 29 – 16 = 13 – 8 = 5 – 4 = 1 -1 = 0 (11101) 42 – 32 = = 2 -2 = 0 (10101) 62 – 32 = 30 – 16 = 14 – 8 = 6 – 4 = 2 – 2 = 0 (111110) 200 – 128 = 72 – 64 = 8 – 8 = 0 ( )
DEFINITIONS Bit – Binary Digit Nibble – 4 Bit Binary Number Byte – 8 Bit Binary Number Kilobyte – 10 Bit Binary Number Megabyte – 20 Bit Binary Number Gigabyte – 30 Bit Binary Number Terabyte – 40 Bit Binary Number
HOW IS BINARY USED? Binary is used to represent all types of data in a computer For example, Colours Colours are made up of Red, Green and Blue Each of these colours are a byte The combination of these three bytes will give you a huge range of colours to choose from
RESEARCH TASK I need to find out how binary represents the following three areas: Images Sound Text
HOW BINARY IS USED TO REPRESENT IMAGES The pictures are made up of pixels, each with an 8-bit number representing a certain shade (Out of 256)
HEXADECIMAL DenaryBinaryHexDenaryBinaryHex A B C D E F C = F5 =
HEXADECIMAL QUESTIONS DenBinHex
HOW TO ADD IT UP 70(16) = = (10) = = 46 To Binary: ( ) Then add all together To Hexidecimal: ( )Every 4 bits = 1 Digit EG: = = 15