Data Processing - NUMBER SYSTEMS
Data Processing - NUMBER SYSTEMS
NUMBER
SYSTEMS
Data Processing
Week III
By the end of the lesson, you
OBJECTIVES should be able to
2
is
= 1 x 25 + 0 x 2 4 + 1 x 23 + 1 x
22 + 0 x 21 + 1 x 20
mple
= 1 x 32 + 0 x 16 + 1 x 8 + 1 x 4
+0x2+1x1
= 32 + 8 + 4 + 1
= (45)10
Binary
• Calculate the decimal value of the
following:
• (110010)2
cise
• (100011)2
UNITS OF DATA MEASUREMENT
• BITS
The term ‘bit’ is a contraction of the words
‘binary’ and ‘digit’.
• It is the smallest unit of memory or
instruction that can be given or stored on a
computer.
• A bit is either a 0 or a 1. The number
‘101101’ is a 6-bit number as it has 6 binary
digits (0s and 1s).
UNITS OF DATA MEASUREMENT
Byt
• A group of 8 bits like 01100001 is 2 bytes.
e
• One kilobyte is a collection of 1000 bytes.
• A word or letter like ‘A’ or ‘G’ is worth 8
bits or 2 bytes.
• One thousand bytes make up a kilobyte
(one thousand letters approximately).
• 1024 kilobytes form a Megabyte (Mb).
Here is a chart for memory capacity
Computer memory conversion.
• Bit(b) {0=off,1=on}
Computer • 1 byte (B) = 8 bits
memory is • 1 Kilobytes (KB) = 1024 B
measured • 1 Megabyte (MB) = 1024 KB
in terms of • 1 Gigabyte (GB) = 1024 MB
how many • 1 Terabyte (TB) = 1024 GB
bits it can • 1 Exabyte (EB) = 1024 PB
store. • 1 zettabyte (ZB) = 1024 EB
• 1 Yottabyte = 1024 ZB
Octal • Octal number
The Octal
system is also a
number positional value
system has system with where
eight digits – 0,
1, 2, 3, 4, 5, 6 each digit has its
and 7 value expressed in
powers of 8.
Octal
The Octal
number
system has
eight digits – 0,
1, 2, 3, 4, 5, 6
and 7
Octal
The Octal
• For example, (24)8 in
number
system has decimal is
eight digits – 0, • = 2×81+4×80
1, 2, 3, 4, 5, 6 • = (20)10
and 7
• When working with large
Hexadecimal digital systems, such as
computers, it is common
The hex is base to find binary numbers
16. It is a consisting of 8, 16 and
system used to even 32 digits which
represent large makes it difficult to both
binary read and write without
numbers. producing errors
especially when working
with lots of 16 or 32-bit
binary numbers.
Hexadecimal
• One common way of overcoming this
problem is to arrange the binary numbers
into groups or sets of four bits (4-bits).
• These groups of 4-bits uses another type
of numbering system also commonly used
in computer and digital systems called
Hexadecimal Numbers.
• Each Hexadecimal
Hexadecimal
number can be
The hex is base represented using
16. It is a only 4 bits, with
system used to each group of bits
represent large having a distinct
binary values between 0000
numbers. (for 0) and 1111 (for
F = 15 = 8+4+2+1)
Hexadecimal
Hexadecimal example 25
QUESTIONS???
Home work 34
1 Convert 1001102
and 11011002 to its
decimal equivalent
2
Convert 4118 and
3268 to its decimal
equivalent.