SlideShare a Scribd company logo
1 of 7
Download to read offline
An Introduction to Computer
Hardware - BKHS
Hexadecimal Numbers

1
01/08/14
Introduction to Hexadecimal
• Base-16 number system
•16 Unique symbols
•Numbers 0 to 9 and letters A to F
•Decimal 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, 15 = F
•Can represent every byte (8 bits) as two hexadecimal
digits
•Easier for humans to read hexadecimal rather than
binary
•Hexadecimal numbers usually have either an 0x prefix
or an h suffix.
Example: 0x3F7A, 85D2h

2
01/08/14
Converting Decimal to Hex
1. Divide the decimal number by 16. Treat the division
as an integer division.
2. Write down the remainder (in hexadecimal).
3. Divide the result again by 16. Treat the division as an
integer division.
4. Repeat step 2 and 3 until result is 0.
5. The hex value is the digit sequence of the remainders
from the last to first.

3
01/08/14
Decimal to Hex Example
Convert 837 to Hex
837/16 = 52 r 5 Least significant
52/16 = 3 r 4
3/16 = 0 r 3 Most Significant
0x345 or 345h

4
01/08/14
Converting Hex to Decimal
1.
2.
3.
4.
5.
6.
7.

Get the last digit (LSD) of the hex number, call
this digit the currentDigit.
Make a variable, let's call it power. Set the value
to 0.
Multiply the current digit with (16^power), store
the result.
Increment power by 1.
Set the the currentDigit to the previous digit of
the hex number.
Repeat from step 3 until all digits have been
multiplied.
Sum the result of step 3 to get the answer number
5
01/08/14
Hex to Decimal Example
Convert 0x58B to Decimal
Last digit (LSD) = 0xB = 11(decimal)
16^0 = 1, 1 x 11 = 11
Next digit = 8
16^1 = 16, 8 x 16 = 128
Next digit (MSD) = 5
16^2 = 256, 5 x 256 = 1280
1280 + 128 + 11 = 1409 decimal

6
01/08/14
Hex to Decimal Example
Convert 0x58B to Decimal
Last digit (LSD) = 0xB = 11(decimal)
16^0 = 1, 1 x 11 = 11
Next digit = 8
16^1 = 16, 8 x 16 = 128
Next digit (MSD) = 5
16^2 = 256, 5 x 256 = 1280
1280 + 128 + 11 = 1409 decimal

6
01/08/14

More Related Content

What's hot

Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)Project Student
 
Decoders
DecodersDecoders
DecodersRe Man
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
Convert Hexadecimal to decimal
Convert Hexadecimal to decimalConvert Hexadecimal to decimal
Convert Hexadecimal to decimaltcc_joemarie
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversionMukesh Tekwani
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computersHazel Anne Quirao
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtErvishal bansal
 
Number system....
Number system....Number system....
Number system....mshoaib15
 
basic logic gates
 basic logic gates basic logic gates
basic logic gatesvishal gupta
 

What's hot (20)

Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)
 
Data representation
Data representationData representation
Data representation
 
Decoders
DecodersDecoders
Decoders
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 
Convert Hexadecimal to decimal
Convert Hexadecimal to decimalConvert Hexadecimal to decimal
Convert Hexadecimal to decimal
 
Chapter 4 number system
Chapter 4 number systemChapter 4 number system
Chapter 4 number system
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtEr
 
Number system....
Number system....Number system....
Number system....
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Number system
Number systemNumber system
Number system
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
 

Viewers also liked

Hexadecimal
HexadecimalHexadecimal
Hexadecimalwardjo
 
hexadecimal notes By ZAK
hexadecimal notes By ZAKhexadecimal notes By ZAK
hexadecimal notes By ZAKTabsheer Hasan
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number Systemkclove
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of ComputersAnkur Kumar
 
[1] Data Representation
[1] Data Representation[1] Data Representation
[1] Data RepresentationMr McAlpine
 
Computer Basic Definitions
Computer Basic DefinitionsComputer Basic Definitions
Computer Basic Definitionsnorzaini
 
Presentation on computer data storage
Presentation on computer data storage Presentation on computer data storage
Presentation on computer data storage GLG
 
Bidang pembelajaran 2.1 tingkatan 4
Bidang pembelajaran 2.1 tingkatan 4Bidang pembelajaran 2.1 tingkatan 4
Bidang pembelajaran 2.1 tingkatan 4MOE
 
Data vs. information
Data vs. informationData vs. information
Data vs. informationBesar Limani
 
Computer Data Representation
Computer Data RepresentationComputer Data Representation
Computer Data Representationritaester
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to ComputersSamudin Kassan
 

Viewers also liked (17)

Hexadecimal
HexadecimalHexadecimal
Hexadecimal
 
hexadecimal notes By ZAK
hexadecimal notes By ZAKhexadecimal notes By ZAK
hexadecimal notes By ZAK
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
 
[1] Data Representation
[1] Data Representation[1] Data Representation
[1] Data Representation
 
Computer Elements
Computer ElementsComputer Elements
Computer Elements
 
Computer Basic Definitions
Computer Basic DefinitionsComputer Basic Definitions
Computer Basic Definitions
 
Presentation on computer data storage
Presentation on computer data storage Presentation on computer data storage
Presentation on computer data storage
 
Bidang pembelajaran 2.1 tingkatan 4
Bidang pembelajaran 2.1 tingkatan 4Bidang pembelajaran 2.1 tingkatan 4
Bidang pembelajaran 2.1 tingkatan 4
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
Data and information
Data and informationData and information
Data and information
 
Data vs. information
Data vs. informationData vs. information
Data vs. information
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
 
Computer Data Representation
Computer Data RepresentationComputer Data Representation
Computer Data Representation
 
Data presentation 2
Data presentation 2Data presentation 2
Data presentation 2
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to Computers
 

Similar to Hexadecimal numbers

numbers_systems (1).ppt
numbers_systems (1).pptnumbers_systems (1).ppt
numbers_systems (1).pptYashNaware2
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawabAmmar_n
 
Lesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representationLesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representationLexume1
 
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octalnoor300491
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes VandanaPagar1
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number systemAswiniT3
 
Digital electronics number system notes
Digital electronics number system notesDigital electronics number system notes
Digital electronics number system notesPRASHANTDUBEY114
 

Similar to Hexadecimal numbers (20)

numbers_systems.ppt
numbers_systems.pptnumbers_systems.ppt
numbers_systems.ppt
 
numbers_systems.ppt
numbers_systems.pptnumbers_systems.ppt
numbers_systems.ppt
 
numbers_systems.ppt
numbers_systems.pptnumbers_systems.ppt
numbers_systems.ppt
 
numbers_systems.pptx
numbers_systems.pptxnumbers_systems.pptx
numbers_systems.pptx
 
numbers_systems (1).ppt
numbers_systems (1).pptnumbers_systems (1).ppt
numbers_systems (1).ppt
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Lesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representationLesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representation
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Data representation
Data representationData representation
Data representation
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octal
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
 
Number system
Number systemNumber system
Number system
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Number system
Number systemNumber system
Number system
 
Numsys
NumsysNumsys
Numsys
 
Digital electronics number system notes
Digital electronics number system notesDigital electronics number system notes
Digital electronics number system notes
 
DIGITAL DESIGN
DIGITAL DESIGNDIGITAL DESIGN
DIGITAL DESIGN
 

Recently uploaded

Benefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive EducationBenefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive EducationMJDuyan
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfMohonDas
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxAditiChauhan701637
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17Celine George
 
Ultra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptxUltra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptxDr. Asif Anas
 
How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17Celine George
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...Nguyen Thanh Tu Collection
 
Patterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptxPatterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptxMYDA ANGELICA SUAN
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxraviapr7
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational PhilosophyShuvankar Madhu
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesMohammad Hassany
 
Quality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICEQuality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICESayali Powar
 
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptxClinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptxraviapr7
 
Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...raviapr7
 
How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17Celine George
 
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxPractical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxKatherine Villaluna
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxSaurabhParmar42
 
How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17Celine George
 

Recently uploaded (20)

Benefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive EducationBenefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive Education
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdf
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptx
 
Finals of Kant get Marx 2.0 : a general politics quiz
Finals of Kant get Marx 2.0 : a general politics quizFinals of Kant get Marx 2.0 : a general politics quiz
Finals of Kant get Marx 2.0 : a general politics quiz
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17
 
Ultra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptxUltra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptx
 
How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
 
Patterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptxPatterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptx
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptx
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational Philosophy
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming Classes
 
Quality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICEQuality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICE
 
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptxClinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
 
Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...
 
How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17
 
Personal Resilience in Project Management 2 - TV Edit 1a.pdf
Personal Resilience in Project Management 2 - TV Edit 1a.pdfPersonal Resilience in Project Management 2 - TV Edit 1a.pdf
Personal Resilience in Project Management 2 - TV Edit 1a.pdf
 
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxPractical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptx
 
How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17
 

Hexadecimal numbers

  • 1. An Introduction to Computer Hardware - BKHS Hexadecimal Numbers 1 01/08/14
  • 2. Introduction to Hexadecimal • Base-16 number system •16 Unique symbols •Numbers 0 to 9 and letters A to F •Decimal 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, 15 = F •Can represent every byte (8 bits) as two hexadecimal digits •Easier for humans to read hexadecimal rather than binary •Hexadecimal numbers usually have either an 0x prefix or an h suffix. Example: 0x3F7A, 85D2h 2 01/08/14
  • 3. Converting Decimal to Hex 1. Divide the decimal number by 16. Treat the division as an integer division. 2. Write down the remainder (in hexadecimal). 3. Divide the result again by 16. Treat the division as an integer division. 4. Repeat step 2 and 3 until result is 0. 5. The hex value is the digit sequence of the remainders from the last to first. 3 01/08/14
  • 4. Decimal to Hex Example Convert 837 to Hex 837/16 = 52 r 5 Least significant 52/16 = 3 r 4 3/16 = 0 r 3 Most Significant 0x345 or 345h 4 01/08/14
  • 5. Converting Hex to Decimal 1. 2. 3. 4. 5. 6. 7. Get the last digit (LSD) of the hex number, call this digit the currentDigit. Make a variable, let's call it power. Set the value to 0. Multiply the current digit with (16^power), store the result. Increment power by 1. Set the the currentDigit to the previous digit of the hex number. Repeat from step 3 until all digits have been multiplied. Sum the result of step 3 to get the answer number 5 01/08/14
  • 6. Hex to Decimal Example Convert 0x58B to Decimal Last digit (LSD) = 0xB = 11(decimal) 16^0 = 1, 1 x 11 = 11 Next digit = 8 16^1 = 16, 8 x 16 = 128 Next digit (MSD) = 5 16^2 = 256, 5 x 256 = 1280 1280 + 128 + 11 = 1409 decimal 6 01/08/14
  • 7. Hex to Decimal Example Convert 0x58B to Decimal Last digit (LSD) = 0xB = 11(decimal) 16^0 = 1, 1 x 11 = 11 Next digit = 8 16^1 = 16, 8 x 16 = 128 Next digit (MSD) = 5 16^2 = 256, 5 x 256 = 1280 1280 + 128 + 11 = 1409 decimal 6 01/08/14