SlideShare a Scribd company logo
1 of 10
Number base conversion
from denary (base10)
Peter R Breach
January 2016
Base 10 (Denary) numbers
Use the symbols
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
The “value” of the digit is dependent on its position
Thousands
Hundreds
Tens
Units
1 3 4 5
1*1000 + 3 * 100 + 4* 10 + 5 * 1
Value comes from the number base (10) and its position
10^3 10^2 10^1 10^0
Base 2 (Binary) Numbers
Use the symbols
0, 1
The “value” of the digit is dependent on its position
Eights
Fours
Twos
Units
1 0 1 0
1*8 + 0 *4 +1 *2 + 0 *1
Value comes from the number base (2) and its position
2^3 2^2 2^1 2^0
Base 8 (Octal) Numbers
Use the symbols
0, 1, 2, 3, 4, 5, 6, 7
The “value” of the digit is dependent on its position
Five Hundred and twelves
Sixtyfours
Eights
Units
1 3 2 4
1*512 + 3 *64 +2 *8 + 4 *1
Value comes from the number base (8) and its position
8^3 8^2 8^1 8^0
Base 16 (Hexadecimal) Numbers
Use the symbols
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
The “value” of the digit is dependent on its position
Four thousand and ninetysixes
Two hundred and fiftysixes
Sixteens
Units
A 0 2 2
10*4096 + 0*256+2*16 +2 *1
Value comes from the number base (16) and its position
16^3 16^2 16^1 16^0
How to know what base?
After the symbols for the number base, a subscript
symbol is used
7410 In normal usage this would be assumed
102
748
7416 or 74hex computing uses 0X74
Convert from Base10 to Base2
Use repeated division, using the target base
each remainder is the value in the base.
25 divide 2 12 remainder 1 least significant
12 divide 2 6 remainder 0
6 divide 2 3 remainder 0
3 divide 2 1 remainder 1
1 divide 2 0 remainder 1
25 10 becomes 11001 2
Convert from Base10 to Base8
Use repeated division, using the target base
each remainder is the value in the base.
46 divide 8 5 remainder 6 least significant
5 divide 8 0 remainder 5
46 10 becomes 56 8
Convert from Base10 to Base16
Use repeated division, using the target base
each remainder is the value in the base.
247 divide 16 15 remainder 7 least significant
15 divide 16 0 remainder 15 f (2 digit values become letters)
247 10 becomes f716 or 0x00f7
Hexadecimal, Octal and Binary
conversions
These rely on changing patterns.
Binary is the base level, the whole is a
single group
0110011010101101
Octal groups 3 binary digits
0 110 011 010 101 1010632558
Hexadecimal groups 4 binary digits
0110 0110 1010 1101 66AD16

More Related Content

Similar to Number base conversion (it) (20)

Number system
Number systemNumber system
Number system
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Chapter 3 part i data representation
Chapter 3 part i data representationChapter 3 part i data representation
Chapter 3 part i data representation
 
CSA UNIT-1-SLIDE-1.ppt
CSA UNIT-1-SLIDE-1.pptCSA UNIT-1-SLIDE-1.ppt
CSA UNIT-1-SLIDE-1.ppt
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
02 number systems
02 number systems02 number systems
02 number systems
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Number system
Number systemNumber system
Number system
 
Binary octal
Binary octalBinary octal
Binary octal
 
Number system
Number system Number system
Number system
 
Ch 4
Ch 4Ch 4
Ch 4
 
1. basic theories of information
1. basic theories of information1. basic theories of information
1. basic theories of information
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Number system
Number systemNumber system
Number system
 

More from Breach_P

Create a Structure in VBNet.pptx
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptxBreach_P
 
Revision of Legal issues for Unit 11.pptx
Revision of Legal issues for Unit 11.pptxRevision of Legal issues for Unit 11.pptx
Revision of Legal issues for Unit 11.pptxBreach_P
 
Unit 2 lo1 2-3
Unit 2 lo1 2-3Unit 2 lo1 2-3
Unit 2 lo1 2-3Breach_P
 
V model of project development
V model of project developmentV model of project development
V model of project developmentBreach_P
 
Hardware devices
Hardware devicesHardware devices
Hardware devicesBreach_P
 
1 3 types_ofcomputersystem
1 3 types_ofcomputersystem1 3 types_ofcomputersystem
1 3 types_ofcomputersystemBreach_P
 
Lo6 student book 1 notes
Lo6 student book 1 notesLo6 student book 1 notes
Lo6 student book 1 notesBreach_P
 
Taraz state pedagogical institute report 3 dec 2014
Taraz state pedagogical institute report 3 dec 2014Taraz state pedagogical institute report 3 dec 2014
Taraz state pedagogical institute report 3 dec 2014Breach_P
 
Using moodle teacher slides
Using moodle teacher slidesUsing moodle teacher slides
Using moodle teacher slidesBreach_P
 
Introduction to moodle
Introduction to moodleIntroduction to moodle
Introduction to moodleBreach_P
 
Different document types
Different document typesDifferent document types
Different document typesBreach_P
 

More from Breach_P (12)

Create a Structure in VBNet.pptx
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptx
 
Revision of Legal issues for Unit 11.pptx
Revision of Legal issues for Unit 11.pptxRevision of Legal issues for Unit 11.pptx
Revision of Legal issues for Unit 11.pptx
 
Unit 2 lo1 2-3
Unit 2 lo1 2-3Unit 2 lo1 2-3
Unit 2 lo1 2-3
 
V model of project development
V model of project developmentV model of project development
V model of project development
 
Hardware devices
Hardware devicesHardware devices
Hardware devices
 
1 3 types_ofcomputersystem
1 3 types_ofcomputersystem1 3 types_ofcomputersystem
1 3 types_ofcomputersystem
 
Lo6 student book 1 notes
Lo6 student book 1 notesLo6 student book 1 notes
Lo6 student book 1 notes
 
Taraz state pedagogical institute report 3 dec 2014
Taraz state pedagogical institute report 3 dec 2014Taraz state pedagogical institute report 3 dec 2014
Taraz state pedagogical institute report 3 dec 2014
 
Xxx test
Xxx testXxx test
Xxx test
 
Using moodle teacher slides
Using moodle teacher slidesUsing moodle teacher slides
Using moodle teacher slides
 
Introduction to moodle
Introduction to moodleIntroduction to moodle
Introduction to moodle
 
Different document types
Different document typesDifferent document types
Different document types
 

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
 
“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
 
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
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
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
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
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
 

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 🔝✔️✔️
 
“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...
 
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
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
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
 
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🔝
 
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
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.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
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
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
 

Number base conversion (it)

  • 1. Number base conversion from denary (base10) Peter R Breach January 2016
  • 2. Base 10 (Denary) numbers Use the symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 The “value” of the digit is dependent on its position Thousands Hundreds Tens Units 1 3 4 5 1*1000 + 3 * 100 + 4* 10 + 5 * 1 Value comes from the number base (10) and its position 10^3 10^2 10^1 10^0
  • 3. Base 2 (Binary) Numbers Use the symbols 0, 1 The “value” of the digit is dependent on its position Eights Fours Twos Units 1 0 1 0 1*8 + 0 *4 +1 *2 + 0 *1 Value comes from the number base (2) and its position 2^3 2^2 2^1 2^0
  • 4. Base 8 (Octal) Numbers Use the symbols 0, 1, 2, 3, 4, 5, 6, 7 The “value” of the digit is dependent on its position Five Hundred and twelves Sixtyfours Eights Units 1 3 2 4 1*512 + 3 *64 +2 *8 + 4 *1 Value comes from the number base (8) and its position 8^3 8^2 8^1 8^0
  • 5. Base 16 (Hexadecimal) Numbers Use the symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F The “value” of the digit is dependent on its position Four thousand and ninetysixes Two hundred and fiftysixes Sixteens Units A 0 2 2 10*4096 + 0*256+2*16 +2 *1 Value comes from the number base (16) and its position 16^3 16^2 16^1 16^0
  • 6. How to know what base? After the symbols for the number base, a subscript symbol is used 7410 In normal usage this would be assumed 102 748 7416 or 74hex computing uses 0X74
  • 7. Convert from Base10 to Base2 Use repeated division, using the target base each remainder is the value in the base. 25 divide 2 12 remainder 1 least significant 12 divide 2 6 remainder 0 6 divide 2 3 remainder 0 3 divide 2 1 remainder 1 1 divide 2 0 remainder 1 25 10 becomes 11001 2
  • 8. Convert from Base10 to Base8 Use repeated division, using the target base each remainder is the value in the base. 46 divide 8 5 remainder 6 least significant 5 divide 8 0 remainder 5 46 10 becomes 56 8
  • 9. Convert from Base10 to Base16 Use repeated division, using the target base each remainder is the value in the base. 247 divide 16 15 remainder 7 least significant 15 divide 16 0 remainder 15 f (2 digit values become letters) 247 10 becomes f716 or 0x00f7
  • 10. Hexadecimal, Octal and Binary conversions These rely on changing patterns. Binary is the base level, the whole is a single group 0110011010101101 Octal groups 3 binary digits 0 110 011 010 101 1010632558 Hexadecimal groups 4 binary digits 0110 0110 1010 1101 66AD16