Vous êtes sur la page 1sur 15

Computer Science ‘O’ Level

Data Representation
Introduction
• Computers understand the world
through binary numbers
• Binary numbers are 0 and 1
• ‘Normal’ numbers we use are called
Denary or Decimal system
Denary and Binary system
• Two number system mainly used - Denary
and Binary.
• The 'base' of a number system describes
how many symbols there are in that
system.
• Denary has ten symbols (0,1,2,3,4,5,6,7,8,9)
• Binary has two symbols (0,1)
Denary and Binary system
• Examples of denary numbers (Base 10):
– 5
– 249
– 316
– 8715
• Examples of binary numbers (Base 2):
– 1
– 101
– 1101
– 11011001
Denary system
• Any number system requires position of
the digit or symbol
• Why? To be able to calculate its value.
• Example denary number 123
(1 x 102)+(2 x 101)+(3 x 100)
– Position refers to the power of the base
Binary system
• Uses Base 2 number system (0 and 1)
Denary and Binary system
Denary and Binary system
Denary and Binary system
Denary and Binary system
Denary and Binary system
Denary and Binary system
Denary and Binary system
Denary and Binary system
Denary and Binary system