SlideShare a Scribd company logo
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
System Base Symbols
Used by
humans?
Used in
computers?
Decimal 10 0, 1, … 9 Yes No
Binary 2 0, 1 No Yes
Octal 8 0, 1, … 7 No No
Hexa-
decimal
16 0, 1, … 9,
A, B, … F
No No
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Decimal Binary Octal
Hexa-
decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Decimal Binary Octal
Hexa-
decimal
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Decimal Binary Octal
Hexa-
decimal
16 10000 20 10
17 10001 21 11
18 10010 22 12
19 10011 23 13
20 10100 24 14
21 10101 25 15
22 10110 26 16
23 10111 27 17
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 The possibilities:
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
2510 = 110012 = 318 = 1916
Base
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
12510 => 5 x 100
= 5
2 x 101
= 20
1 x 102
= 100
125
Base
Weight
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Multiply each bit by 2n
, where n is the “weight” of
the bit
 The weight is the position of the bit, starting from 0
on the right
 Add the results
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
1010112 => 1 x 20
= 1
1 x 21
= 2
0 x 22
= 0
1 x 23
= 8
0 x 24
= 0
1 x 25
= 32
4310
Bit “0”
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Multiply each bit by 8n
, where n is the “weight” of
the bit
 The weight is the position of the bit, starting from 0
on the right
 Add the results
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
7248 => 4 x 80
= 4
2 x 81
= 16
7 x 82
= 448
46810
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Multiply each bit by 16n
, where n is the “weight” of
the bit
 The weight is the position of the bit, starting from 0
on the right
 Add the results
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
ABC16 => C x 160
= 12 x 1 = 12
B x 161
= 11 x 16 = 176
A x 162
= 10 x 256 = 2560
274810
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Divide by two, keep track of the remainder
 First remainder is bit 0 (LSB, least-significant bit)
 Second remainder is bit 1
 Etc.
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
12510 = ?2
2 125
62 12
31 02
15 12
7 12
3 12
1 12
0 1
12510 = 11111012
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Convert each octal digit to a 3-bit equivalent binary
representation
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
7058 = ?2
7 0 5
111 000 101
7058 = 1110001012
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Convert each hexadecimal digit to a 4-bit equivalent
binary representation
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
10AF16 = ?2
1 0 A F
0001 0000 1010 1111
10AF16 = 00010000101011112
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Divide by 8
 Keep track of the remainder
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
123410 = ?8
8 1234
154 28
19 28
2 38
0 2
123410 = 23228
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Divide by 16
 Keep track of the remainder
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
123410 = ?16
123410 = 4D216
16 1234
77 216
4 13 = D16
0 4
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Group bits in threes, starting on right
 Convert to octal digits
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
10110101112 = ?8
1 011 010 111
1 3 2 7
10110101112 = 13278
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Group bits in fours, starting on right
 Convert to hexadecimal digits
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
10101110112 = ?16
10 1011 1011
2 B B
10101110112 = 2BB16
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Use binary as an intermediary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
10768 = ?16
1 0 7 6
001 000 111 110
2 3 E
10768 = 23E16
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Hexadecimal
Decimal Octal
Binary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Technique
 Use binary as an intermediary
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
1F0C16 = ?8
1 F 0 C
0001 1111 0000 1100
1 7 4 1 4
1F0C16 = 174148
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 For common bases, add powers
26
× 210
= 216
= 65,536
or…
26
× 210
= 64 × 210
= 64k
ab
× ac
= ab+c
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Two 1-bit values
A B A + B
0 0 0
0 1 1
1 0 1
1 1 10
“two”
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Two n-bit values
 Add individual bits
 Propagate carries
 E.g.,
10101 21
+ 11001 + 25
101110 46
11
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Decimal (just for fun)
35
x 105
175
000
35
3675
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Binary, two 1-bit values
A B A × B
0 0 0
0 1 0
1 0 0
1 1 1
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Binary, two n-bit values
 As with decimal values
 E.g.,
1110
x 1011
1110
1110
0000
1110
10011010
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Decimal to decimal (just for fun)
pp. 46-50
3.14 => 4 x 10-2
= 0.04
1 x 10-1
= 0.1
3 x 100
= 3
3.14
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
 Binary to decimal
pp. 46-50
10.1011 => 1 x 2-4
= 0.0625
1 x 2-3
= 0.125
0 x 2-2
= 0.0
1 x 2-1
= 0.5
0 x 20
= 0.0
1 x 21
= 2.0
2.6875
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia
Next topic
Midhunchakkaravarthy
Lecturer
School of Computer Science
Lincoln University College
Malaysia

More Related Content

PPTX
How to Retain your team by Following few basic rules
PPT
συνταγές πασχαλιάτικες
PDF
τι ειναι οι ιοι των ηλ.υπολογιστών και τρόποι προστασιας από αυτούς
PPT
αναμνήσεις απο τα σχολικά μας χρόνια
PDF
Cyberbullying
PDF
Brochure mindmap
PPTX
Ubu proposal
PPT
δικαιώματα
How to Retain your team by Following few basic rules
συνταγές πασχαλιάτικες
τι ειναι οι ιοι των ηλ.υπολογιστών και τρόποι προστασιας από αυτούς
αναμνήσεις απο τα σχολικά μας χρόνια
Cyberbullying
Brochure mindmap
Ubu proposal
δικαιώματα

Viewers also liked (6)

PPT
Finance 101 for ED Interets Group
PPTX
April Wiki Work
PPTX
Informàtica 4t exercici
PPT
מצע מקוצר
PPT
Prez otvaga
PPT
Ngai Language Barrier in Disaster Planning
Finance 101 for ED Interets Group
April Wiki Work
Informàtica 4t exercici
מצע מקוצר
Prez otvaga
Ngai Language Barrier in Disaster Planning
Ad

Similar to Number systems (20)

PDF
Introduction to number systems and Codes.pdf
PPT
Number System.ppt
PPTX
DLC_2131704_number_baseconversions
PPT
5871320.ppt
PPT
Binary number systems
PPTX
Computing 6
PPTX
number system
PPT
Number Systems
PPT
Number Systems
PDF
Number system utm notes
PPTX
ITC lecture 3.pptx
PPT
Number systems
PPT
Computer Number System
PPT
Number Systems for class 11 computer science
PPT
B.sc cs-ii -u-1.1 digital logic circuits, digital component floting and fixed...
PPTX
Number system de (2131004) - 160920107003
PPT
Number systems r002
PPT
digital logic circuits, digital component floting and fixed point
PPT
Mca i-u-1.1 digital logic circuits, digital component floting and fixed point
PPT
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Introduction to number systems and Codes.pdf
Number System.ppt
DLC_2131704_number_baseconversions
5871320.ppt
Binary number systems
Computing 6
number system
Number Systems
Number Systems
Number system utm notes
ITC lecture 3.pptx
Number systems
Computer Number System
Number Systems for class 11 computer science
B.sc cs-ii -u-1.1 digital logic circuits, digital component floting and fixed...
Number system de (2131004) - 160920107003
Number systems r002
digital logic circuits, digital component floting and fixed point
Mca i-u-1.1 digital logic circuits, digital component floting and fixed point
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Insiders guide to clinical Medicine.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Basic Mud Logging Guide for educational purpose
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
102 student loan defaulters named and shamed – Is someone you know on the list?
Insiders guide to clinical Medicine.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Final Presentation General Medicine 03-08-2024.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
TR - Agricultural Crops Production NC III.pdf
RMMM.pdf make it easy to upload and study
Week 4 Term 3 Study Techniques revisited.pptx
Basic Mud Logging Guide for educational purpose
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES

Number systems

Editor's Notes

  • #2: Lincoln University College
  • #3: Lincoln University College