Representation of Data

Memory in a computer consists of a very large number of electronic 'circuits' which can be in one of two possible states .......

  • 'ON' (represented by 1)
  • 'OFF' (represented by 0).

8 such circuits which are in the states :
ON, ON, OFF, OFF, ON, OFF, OFF, ON

...could be represented by the digits :
1 1 0 0 1 0 0 1

Each 1 or 0 is called a BIT (short for BInary digiT).

8 BITs used together is known as a BYTE.

The Binary number system uses only 0s and 1s...

 

 

Binary Number System

When we learn arithmetic, we use Base 10 numbers. (denary system).

Digits used are : 0,1,2,3,4,5,6,7,8,9

The number 1583 means 1 'thousand', 5 'hundreds', 8 'tens' and 3 'units'...

1000 100 10 1
1 5 8 3

The Binary number system is a Base 2 system.

Digits used are : 0,1

Consider the binary number 10010110.

We can set it out under headings....

128 64 32 16 8 4 2 1
1 0 0 1 0 1 1 0

So the binary number 10010110 represents the denary number
128 + 16 + 4 + 2 =
150.

 

To distinguish between different number systems we often use subscripts after a number...

This is a denary number .... 11010

This is a binary number .... 1102