SlideShare a Scribd company logo
Computing 6
COMMON NUMBER SYSTEMS
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
QUANTITIES/COUNTING (1 OF 3)
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
QUANTITIES/COUNTING
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
CONVERSION AMONG BASES
 The possibilities:
Hexadecimal
Decimal Octal
Binary
QUICK EXAMPLE
2510 = 110012 = 318 = 1916
Base
DECIMAL TO DECIMAL (JUST FOR FUN)
Hexadecimal
Decimal Octal
Binary
Next slide…
12510 => 5 x 100= 5
2 x 101= 20
1 x 102= 100
125
Base
Weight
BINARY TO DECIMAL
Hexadecimal
Decimal Octal
Binary
BINARY TO DECIMAL
 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
EXAMPLE
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”
OCTAL TO DECIMAL
Hexadecimal
Decimal Octal
Binary
OCTAL TO DECIMAL
 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
EXAMPLE
7248 => 4 x 80 = 4
2 x 81 = 16
7 x 82 = 448
46810
HEXADECIMAL TO DECIMAL
Hexadecimal
Decimal Octal
Binary
HEXADECIMAL TO DECIMAL
 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
EXAMPLE
ABC16 => C x 160 = 12 x 1 = 12
B x 161 = 11 x 16 = 176
A x 162 = 10 x 256 = 2560
274810
DECIMAL TO BINARY
Hexadecimal
Decimal Octal
Binary
DECIMAL TO BINARY
 Technique
 Divide by two, keep track of the remainder
 First remainder is bit 0 (LSB, least-significant bit)
 Second remainder is bit 1
 Etc.
EXAMPLE
12510 = ?2
2 125
62 12
31 02
15 1
2
7 1
2
3 12
1 12
0 1
12510 = 11111012
OCTAL TO BINARY
Hexadecimal
Decimal Octal
Binary
OCTAL TO BINARY
 Technique
 Convert each octal digit to a 3-bit equivalent
binary representation
EXAMPLE
7058 = ?2
7 0 5
111 000 101
7058 = 1110001012
HEXADECIMAL TO BINARY
Hexadecimal
Decimal Octal
Binary
HEXADECIMAL TO BINARY
 Technique
 Convert each hexadecimal digit to a 4-bit
equivalent binary representation
EXAMPLE
10AF16 = ?2
1 0 A F
0001 0000 1010 1111
10AF16 = 00010000101011112
DECIMAL TO OCTAL
Hexadecimal
Decimal Octal
Binary
DECIMAL TO OCTAL
 Technique
 Divide by 8
 Keep track of the remainder
EXAMPLE
123410 = ?8
8 1234
154 2
8
19 28
2 3
8
0 2
123410 = 23228
DECIMAL TO HEXADECIMAL
Hexadecimal
Decimal Octal
Binary
DECIMAL TO HEXADECIMAL
 Technique
 Divide by 16
 Keep track of the remainder
EXAMPLE
123410 = ?16
123410 = 4D216
16 1234
77 216
4 13 = D16
0 4
BINARY TO OCTAL
Hexadecimal
Decimal Octal
Binary
BINARY TO OCTAL
 Technique
 Group bits in threes, starting on right
 Convert to octal digits
EXAMPLE
10110101112 = ?8
1 011 010 111
1 3 2 7
10110101112 = 13278
BINARY TO HEXADECIMAL
Hexadecimal
Decimal Octal
Binary
BINARY TO HEXADECIMAL
 Technique
 Group bits in fours, starting on right
 Convert to hexadecimal digits
EXAMPLE
10101110112 = ?16
10 1011 1011
2 B B
10101110112 = 2BB16
OCTAL TO HEXADECIMAL
Hexadecimal
Decimal Octal
Binary
OCTAL TO HEXADECIMAL
 Technique
 Use binary as an intermediary
EXAMPLE
10768 = ?16
1 0 7 6
001 000 111 110
2 3 E
10768 = 23E16
HEXADECIMAL TO OCTAL
Hexadecimal
Decimal Octal
Binary
HEXADECIMAL TO OCTAL
 Technique
 Use binary as an intermediary
EXAMPLE
1F0C16 = ?8
1 F 0 C
0001 1111 0000 1100
1 7 4 1 4
1F0C16 = 174148

More Related Content

PPT
Number Systems
PDF
Lec 02
PPT
Number systems
PPTX
Digital Search Tree
PPTX
Digital search tree
PPTX
Register and counter
KEY
Population predictor
DOC
Javier dominguez 20800945 actividad 1_estructuras discretas
Number Systems
Lec 02
Number systems
Digital Search Tree
Digital search tree
Register and counter
Population predictor
Javier dominguez 20800945 actividad 1_estructuras discretas

What's hot (20)

PPTX
Grade 9 homework questions on 2.4 and 2.5
PDF
Binary Number System and Codes
PPTX
Lesson4.1 u4 l1 binary representation
PDF
Octal to Hexadecimal and Hexadecimal to Octal
KEY
4.5 multiplying and dividng by powers of 10
PPT
Binomial1
PPTX
Creative teaching vernier principle revisited
PDF
Binary Arithmetic Operations
PPT
Per6 basis_Representations Of Integers
PDF
Mock cat solutions paper no 1
PDF
Function equations
PPT
Hexadecimal numbers
PDF
Mock cat questions paper no 1
PPTX
Quad eqn6
PDF
Amth250 octave matlab some solutions (4)
PPTX
Application of bases
PDF
Chapter 4
PPTX
Encoder for (7,3) cyclic code using matlab
PPTX
Introduction to number system
PPTX
3.3.33
Grade 9 homework questions on 2.4 and 2.5
Binary Number System and Codes
Lesson4.1 u4 l1 binary representation
Octal to Hexadecimal and Hexadecimal to Octal
4.5 multiplying and dividng by powers of 10
Binomial1
Creative teaching vernier principle revisited
Binary Arithmetic Operations
Per6 basis_Representations Of Integers
Mock cat solutions paper no 1
Function equations
Hexadecimal numbers
Mock cat questions paper no 1
Quad eqn6
Amth250 octave matlab some solutions (4)
Application of bases
Chapter 4
Encoder for (7,3) cyclic code using matlab
Introduction to number system
3.3.33
Ad

Similar to Computing 6 (20)

PPT
5871320.ppt
PPT
01.number systems
PPT
01.Number Systems
PPT
01.number systems
PDF
Number Systems (These are ways of representing numbers using symbols and rule...
PPT
Binary number systems
PPT
Number Systems
DOCX
Unit 4.docx
PPTX
Computer number systems
PPT
Number Systems for class 11 computer science
PDF
Number Systems
PPT
Computer Number System
PPTX
Number system
PPTX
Number systems presentation
PPTX
Week9.pptx
PPT
al about NumberSystems& conversion etc.ppt
PPTX
Number systems
PPTX
number system
PPTX
Number system de (2131004) - 160920107003
PPTX
chapter 3 number systems register transfer
5871320.ppt
01.number systems
01.Number Systems
01.number systems
Number Systems (These are ways of representing numbers using symbols and rule...
Binary number systems
Number Systems
Unit 4.docx
Computer number systems
Number Systems for class 11 computer science
Number Systems
Computer Number System
Number system
Number systems presentation
Week9.pptx
al about NumberSystems& conversion etc.ppt
Number systems
number system
Number system de (2131004) - 160920107003
chapter 3 number systems register transfer
Ad

More from sufyanmaqsood (7)

PPT
Computing 9
PPT
Computing 8
PPT
Computing 7
PPT
input,output and storage
PPT
Computing 4
PPT
Computing 3
PPTX
Computing 2
Computing 9
Computing 8
Computing 7
input,output and storage
Computing 4
Computing 3
Computing 2

Recently uploaded (20)

PPTX
Cloud Computing ppt.ppt1QU4FFIWEKWEIFRRGx
PDF
Arts and Crats of Cagayan and Central Luzon.pdf
PPTX
400kV_Switchyardasdsfesfewffwefrrwewew_Training_Module.pptx
PPTX
IOT Unit 6 PPT ( ~ By Prof. Simran Ahuja ).pptx
PPTX
Lc 10hhjkhhjjkkkkjhhuiooopojjjoookjji.pptx
PDF
Music-and-Arts_jwkskwjsjsjsjsjsjsjdisiaiajsjjzjz
PPTX
Contemporary Arts and the Potter of Thep
PDF
Triangle of photography : aperture, exposure and ISO
PDF
Landscape Architecture: Shaping the World Between Buildings
PDF
lebo101.pdf biology chapter important .....
PPTX
668819271-A Relibility CCEPTANCE-SAMPLING.pptx
PDF
2025_Mohammad Mahbub KxXxáacscascsacabir.pdf
PPTX
Presentation on tradtional textiles of kutch
PPTX
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
PPTX
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK
PPTX
Physical Education and Health Q4-CO4-TARPAPEL
PPTX
DRBC-ROY-ENGINEERING-COLLEGE .pptx
PPTX
mineralsshow-160112142010.pptxkuygyu buybub
PPTX
Q1_TLE_8_Week_2asfsdgsgsdgdsgfasdgwrgrgqrweg
PPTX
Understanding Postmodernism Powerpoint.pptx
Cloud Computing ppt.ppt1QU4FFIWEKWEIFRRGx
Arts and Crats of Cagayan and Central Luzon.pdf
400kV_Switchyardasdsfesfewffwefrrwewew_Training_Module.pptx
IOT Unit 6 PPT ( ~ By Prof. Simran Ahuja ).pptx
Lc 10hhjkhhjjkkkkjhhuiooopojjjoookjji.pptx
Music-and-Arts_jwkskwjsjsjsjsjsjsjdisiaiajsjjzjz
Contemporary Arts and the Potter of Thep
Triangle of photography : aperture, exposure and ISO
Landscape Architecture: Shaping the World Between Buildings
lebo101.pdf biology chapter important .....
668819271-A Relibility CCEPTANCE-SAMPLING.pptx
2025_Mohammad Mahbub KxXxáacscascsacabir.pdf
Presentation on tradtional textiles of kutch
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK
Physical Education and Health Q4-CO4-TARPAPEL
DRBC-ROY-ENGINEERING-COLLEGE .pptx
mineralsshow-160112142010.pptxkuygyu buybub
Q1_TLE_8_Week_2asfsdgsgsdgdsgfasdgwrgrgqrweg
Understanding Postmodernism Powerpoint.pptx

Computing 6