SlideShare a Scribd company logo
1 of 10
Conversion Methods
Denary Binary Hexadecimal Octal
0 00000000 0 0
1 00000001 1 1
2 00000010 2 2
3 00000011 3 3
4 00000100 4 4
5 00000101 5 5
6 00000110 6 6
7 00000111 7 7
8 00001000 8
9 00001001 9
10 00001010 A
11 00001011 B
12 00001100 C
13 00001101 D
14 00001110 E
15 00001111 F
2
Hexadecimal numbers
Hexadecimal uses the digits 0-9 and the letters A-F, so counting would look like this:
0 1 2 3 4 5 6 7 8 9 A B C D E F
10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
20 21 21 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F
30 31 32 32 … etc
3
Binary to Hexadecimal
1. Draw the table
a. eg 10110001 add it to your table
b. Divide it into groups of 4 bits starting from the right
hand side
c. In each group start 23 22 21 20
d. Add up the values in each group and from the
heaxadecimal table replace the value
23 22 21 20 23 22 21 20
1 0 1 1 0 0 0 1
8 + 0 + 2 + 1 = 11 0 + 0 + 0 + 1 = 1
B 1
4
Binary to Decimal (Denary)
1. Draw the table
a. eg 10010001 add it to your table
b. Add all the values in the second row that have a 1 in
the third row
c. 128+16+1 = 145
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
1 0 0 1 0 0 0 1
5
Hexadecimal to Decimal
• Eg. B1 (2 characters)
• Draw the table
162 161 160
256 16 1
B 1
Decimal value 11 1
11x16 =176 1x1 =1
176 + 1 = 177
Decimal to
hexadecimal
from table
slide 2
Multiply these
values eg 11x16
and 1x1 then add
the results
6
Decimal to hexadecimal
• Eg 255
• Divide by 16
• 255/16 = 15 and a remainder of 15
• 15/16 = 0 and a remainder of 15
decimal 15 15
hexadecimal F F
Result = FF
Most significant
Least significant
7
Decimal to hexadecimal
eg 325
325/16 = 20 and a remainder of 5
20/16 =1 and a remainder of 4
1/16 = 0 and a remainder of 1
32510
1 4 5
Result = 14516 or 0x145
Most significant
Least significant
8
Decimal to Binary
Draw the table
Eg 325
29 28
27 26 25 24 23 22 21 20
512 256 128 64 32 16 8 4 2 1
1 0 1 0 0 0 1 0 1
OR
9
Decimal to Binary
Eg 324
324/2 = 162 and a remainder of 0
162/2 = 81 and a remainder of 0
81/2 = 40 and a remainder of 1
40/2 = 20 and a remainder of 0
20/2 = 10 and a remainder of 0
10/2 = 5 and a remainder of 0
5/2 = 2 and a remainder of 1
2/2 =1 and a remainder of 0
1/2 = 0 and a remainder of 1
The result is 101000100
Most significant
Least significant
10

More Related Content

What's hot

Linear programming
Linear programming Linear programming
Linear programming RASANATH VK
 
Unit 3 Data Representation
Unit 3 Data RepresentationUnit 3 Data Representation
Unit 3 Data RepresentationMiss Short
 
Euler Characteristic WIP
Euler Characteristic WIPEuler Characteristic WIP
Euler Characteristic WIPMyOverflow
 
Chapter 1 standard form
Chapter 1 standard formChapter 1 standard form
Chapter 1 standard formlarasati06
 
POLYGON PROPERTIES @ 9B
POLYGON PROPERTIES @ 9BPOLYGON PROPERTIES @ 9B
POLYGON PROPERTIES @ 9Bjigarmehtatges
 
Obj. 25 Properties of Polygons
Obj. 25 Properties of PolygonsObj. 25 Properties of Polygons
Obj. 25 Properties of Polygonssmiller5
 
Fractions Add & Subtract
Fractions Add & SubtractFractions Add & Subtract
Fractions Add & SubtractLezly270
 
Collins international primary maths workbook 4
Collins international primary maths workbook 4Collins international primary maths workbook 4
Collins international primary maths workbook 4ssuser1e528d
 
Expanded Column Method Addition
Expanded Column Method AdditionExpanded Column Method Addition
Expanded Column Method AdditionChris James
 
Working With Binary Numbers
Working With Binary NumbersWorking With Binary Numbers
Working With Binary Numbersadil raja
 

What's hot (20)

Linear programming
Linear programming Linear programming
Linear programming
 
Activity ..
Activity ..Activity ..
Activity ..
 
Unit 3 Data Representation
Unit 3 Data RepresentationUnit 3 Data Representation
Unit 3 Data Representation
 
Euler Characteristic WIP
Euler Characteristic WIPEuler Characteristic WIP
Euler Characteristic WIP
 
Chapter 1 standard form
Chapter 1 standard formChapter 1 standard form
Chapter 1 standard form
 
Stdform
StdformStdform
Stdform
 
POLYGON PROPERTIES @ 9B
POLYGON PROPERTIES @ 9BPOLYGON PROPERTIES @ 9B
POLYGON PROPERTIES @ 9B
 
Obj. 25 Properties of Polygons
Obj. 25 Properties of PolygonsObj. 25 Properties of Polygons
Obj. 25 Properties of Polygons
 
magic of math
magic of mathmagic of math
magic of math
 
Math magic
Math magicMath magic
Math magic
 
Fractions Add & Subtract
Fractions Add & SubtractFractions Add & Subtract
Fractions Add & Subtract
 
Collins international primary maths workbook 4
Collins international primary maths workbook 4Collins international primary maths workbook 4
Collins international primary maths workbook 4
 
Complements
ComplementsComplements
Complements
 
Kinder number before
Kinder number beforeKinder number before
Kinder number before
 
Expanded Column Method Addition
Expanded Column Method AdditionExpanded Column Method Addition
Expanded Column Method Addition
 
Algebraic expression (las)
Algebraic expression (las)Algebraic expression (las)
Algebraic expression (las)
 
Algebra I 1
Algebra I 1Algebra I 1
Algebra I 1
 
Working With Binary Numbers
Working With Binary NumbersWorking With Binary Numbers
Working With Binary Numbers
 
Complement
ComplementComplement
Complement
 
Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 

Similar to Conversion methods

ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptssuser52a19e
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalUtkirjonUbaydullaev1
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptRAJKUMARP63
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)Fizaril Amzari Omar
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptRabiaAsif31
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptxAminaZahid16
 
Data representation
Data representationData representation
Data representationChew Hoong
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptxkhalidkk6
 

Similar to Conversion methods (20)

ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and Hexadecimal
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
binary-numbers.ppt
binary-numbers.pptbinary-numbers.ppt
binary-numbers.ppt
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
Unit 4.docx
Unit 4.docxUnit 4.docx
Unit 4.docx
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
number system
number systemnumber system
number system
 
Data representation
Data representationData representation
Data representation
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Lec 02
Lec 02Lec 02
Lec 02
 
Number system
Number systemNumber system
Number system
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Number system
Number systemNumber system
Number system
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Conversion methods

  • 2. Denary Binary Hexadecimal Octal 0 00000000 0 0 1 00000001 1 1 2 00000010 2 2 3 00000011 3 3 4 00000100 4 4 5 00000101 5 5 6 00000110 6 6 7 00000111 7 7 8 00001000 8 9 00001001 9 10 00001010 A 11 00001011 B 12 00001100 C 13 00001101 D 14 00001110 E 15 00001111 F 2
  • 3. Hexadecimal numbers Hexadecimal uses the digits 0-9 and the letters A-F, so counting would look like this: 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 21 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 32 … etc 3
  • 4. Binary to Hexadecimal 1. Draw the table a. eg 10110001 add it to your table b. Divide it into groups of 4 bits starting from the right hand side c. In each group start 23 22 21 20 d. Add up the values in each group and from the heaxadecimal table replace the value 23 22 21 20 23 22 21 20 1 0 1 1 0 0 0 1 8 + 0 + 2 + 1 = 11 0 + 0 + 0 + 1 = 1 B 1 4
  • 5. Binary to Decimal (Denary) 1. Draw the table a. eg 10010001 add it to your table b. Add all the values in the second row that have a 1 in the third row c. 128+16+1 = 145 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1 1 0 0 1 0 0 0 1 5
  • 6. Hexadecimal to Decimal • Eg. B1 (2 characters) • Draw the table 162 161 160 256 16 1 B 1 Decimal value 11 1 11x16 =176 1x1 =1 176 + 1 = 177 Decimal to hexadecimal from table slide 2 Multiply these values eg 11x16 and 1x1 then add the results 6
  • 7. Decimal to hexadecimal • Eg 255 • Divide by 16 • 255/16 = 15 and a remainder of 15 • 15/16 = 0 and a remainder of 15 decimal 15 15 hexadecimal F F Result = FF Most significant Least significant 7
  • 8. Decimal to hexadecimal eg 325 325/16 = 20 and a remainder of 5 20/16 =1 and a remainder of 4 1/16 = 0 and a remainder of 1 32510 1 4 5 Result = 14516 or 0x145 Most significant Least significant 8
  • 9. Decimal to Binary Draw the table Eg 325 29 28 27 26 25 24 23 22 21 20 512 256 128 64 32 16 8 4 2 1 1 0 1 0 0 0 1 0 1 OR 9
  • 10. Decimal to Binary Eg 324 324/2 = 162 and a remainder of 0 162/2 = 81 and a remainder of 0 81/2 = 40 and a remainder of 1 40/2 = 20 and a remainder of 0 20/2 = 10 and a remainder of 0 10/2 = 5 and a remainder of 0 5/2 = 2 and a remainder of 1 2/2 =1 and a remainder of 0 1/2 = 0 and a remainder of 1 The result is 101000100 Most significant Least significant 10