1 / 7

Binary

Binary. Data Representation. Objectives. Know the key terms used in data representation Understand how computers count in binary Be able convert numbers up to 255 between denary (decimal) and binary. The basics. Computer hardware is made of electronic circuits .

les
Download Presentation

Binary

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Binary Data Representation

  2. Objectives • Know the key terms used in data representation • Understand how computers count in binary • Be able convert numbers up to 255 between denary (decimal) and binary

  3. The basics • Computer hardware is made of electronic circuits. • The circuit pathways can have electricity flowing through them. • Electricity has two states: On - 1 Off - 0

  4. A little bit of maths Denary 0 1 2 3 4 5 6 7 8 9 Binary 0 1 • The number system that we use is called denary or base 10 • This means that we have numbers from 0 to 9 • Computers don’t have this because of the two states, so you can only ever have 1 or 0, this is called binary or base 2 • If you have a 1 or a 0 its called a bit which stand for binary digit. Binary Digit Bit

  5. Memory sizes • 0 or 1 = 1 Bit • 4 bits = nibble (This will be important later on!) • 8 bits = Byte • 1024 Bytes = 1 Kilobyte (Kb) • 1024 Kilobytes = 1 Megabyte (Mb) • 1024 Megabytes = 1 Gigabyte (Gb) • 1024 Gigabytes = 1 Terabyte (Tb)

  6. How to convert to binary • You will needto know how to convert to binary (and also the other way) • You will only ever be asked to convert 8 bit Each one goes up to the power of 2 128 64 32 16 8 4 2 1 The magic numbers

  7. Step by step – Converting to Binary 12864 32 16 8 4 2 1 • Layout the magic numbers on your paper • Think greedy, and work from left to right • Go through each number and work out whether it goes into the number you are wishing to convert, if its no then you need to put a 0, if its yes then put a 1 underneath – we are converting 80 12864 32 16 8 4 2 1 Does 128 go into 80 - No 0 Does 64 go into 80 - Yes 0 1 Remainder - 16 Does 32 go into 16 - No 0 1 0 Does 16 go into 16 - Yes 0 1 0 1 We have converted everything just add 0s 0 1 0 1 0 0 0 0

More Related