Binary

1 / 7

# Binary - PowerPoint PPT Presentation

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 .

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'Binary' - les

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### 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.
• The circuit pathways can have electricity flowing through them.
• Electricity has two states:

On - 1

Off - 0

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

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)
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

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