SlideShare a Scribd company logo
1 of 10
Conversion of a hexadecimal number to a binary
                    number

METHOD 1

       First it should be converted to its equivalent
        decimal number

       Then convert the decimal number so obtained
        to its binary equivalent


                    http://improvec.blogspot.in/         1
METHOD 2

Each digit of the given hexadecimal number should be
       converted to its 4-bit binary equivalent




                    http://improvec.blogspot.in/       2
1.Convert the hexadecimal number ABC to its
          equivalent binary number


 METHOD 1

     (ABC)16 = A *162 + B*161 + C*160
            = 10 *256 + 11*16 + 12*1
            = 2560 + 176 + 12
            = (2748)10
          (1010 1011 1100)10

                   http://improvec.blogspot.in/   3
Now converting this decimal into binary
    Division        Remainders
    2 2748
    2 1374 0
    2 687           0
    2 343           1
    2 171           1
    2 85            1
    2 42            1
    2 21            0
    2 10            1
    2 5             0
    2 2             1
    2 1             0
    2 0             1
Thus (ABC)16 = (2748)10 = (101010111100)
                        http://improvec.blogspot.in/   4
METHOD 2

A16 = (10)10 = (1010)2         2 10
B16 = (11)10 = (1011)2         2 5 0
C16 = (12)10 = (1100)2          2 2 1
                                   2 1 0
                                       0 1
                            (10)10 = (1010)2

(ABC)16 = ( 1010 1011 1100 )2

                    http://improvec.blogspot.in/   5
2. Convert the hexadecimal number 6B9 to its
           equivalent binary number
 Each digit of the given hexadecimal number is
  converted to its 4-bit binary equivalent

      (6B9)16 = (0110) (1011)(1001)
              = (011010111001)2
              = (011010111001)2




                     http://improvec.blogspot.in/   6
3. Convert the hexadecimal number 6D.3A to its
           equivalent binary number
 Each digit of the given hexadecimal number is
  converted to its 4-bit binary equivalent

      (6D.3A)16 = (0110) (1101) . (0011) (1010)
                =(01101101.00111010)2
                =(1101101.0011101)2




                    http://improvec.blogspot.in/   7
Summary

In this class, you have learnt about



 Conversions of binary number to hexadecimal

 Conversions of hexadecimal to binary number




                      http://improvec.blogspot.in/   8
Frequently Asked Questions


 Explain how to convert a binary number to
  equivalent hexadecimal

 Explain how to convert a hexa decimal number to
  equivalent binary




                    http://improvec.blogspot.in/    9
Quiz

 The binary equivalent of (ABC)
  a. 1010 1011 1100
  b.1010 1100 1100
  c. 1011 1010 1101
Answer: a




                     http://improvec.blogspot.in/   10

More Related Content

What's hot (20)

06 floating point
06 floating point06 floating point
06 floating point
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversions
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Representation of numbers and characters
Representation of numbers and charactersRepresentation of numbers and characters
Representation of numbers and characters
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Octal to Hexadecimal and Hexadecimal to Octal
Octal to Hexadecimal  and Hexadecimal to OctalOctal to Hexadecimal  and Hexadecimal to Octal
Octal to Hexadecimal and Hexadecimal to Octal
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Hexadecimal numbers
Hexadecimal  numbersHexadecimal  numbers
Hexadecimal numbers
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Conversion binary to decimal
Conversion binary to decimalConversion binary to decimal
Conversion binary to decimal
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
01.number systems
01.number systems01.number systems
01.number systems
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
 
Number system
Number systemNumber system
Number system
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 

Similar to Hexa to binary

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
 
Binary octal
Binary octalBinary octal
Binary octaldrdipo4
 
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
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptxkhalidkk6
 
Data representation for o and a levels 2
Data representation for o and a levels 2Data representation for o and a levels 2
Data representation for o and a levels 2Fari84
 
6- التحويل من النظام الثنائى إلى النظام السداسى عشر
6- التحويل من النظام الثنائى إلى النظام السداسى عشر6- التحويل من النظام الثنائى إلى النظام السداسى عشر
6- التحويل من النظام الثنائى إلى النظام السداسى عشرum_adeveloper
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
Data representation number
Data representation   numberData representation   number
Data representation numberahunneyball
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramodNCP
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009lionking
 
Digital logic assn
Digital logic assnDigital logic assn
Digital logic assnjyothir19
 

Similar to Hexa to binary (20)

Dec to bin.20
Dec to bin.20Dec to bin.20
Dec to bin.20
 
Bolum1cozumler
Bolum1cozumlerBolum1cozumler
Bolum1cozumler
 
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)
 
Bin to dec.21
Bin to dec.21Bin to dec.21
Bin to dec.21
 
Binary octal
Binary octalBinary octal
Binary octal
 
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
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
Data representation for o and a levels 2
Data representation for o and a levels 2Data representation for o and a levels 2
Data representation for o and a levels 2
 
6- التحويل من النظام الثنائى إلى النظام السداسى عشر
6- التحويل من النظام الثنائى إلى النظام السداسى عشر6- التحويل من النظام الثنائى إلى النظام السداسى عشر
6- التحويل من النظام الثنائى إلى النظام السداسى عشر
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
Data representation number
Data representation   numberData representation   number
Data representation number
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramod
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
Digital logic assn
Digital logic assnDigital logic assn
Digital logic assn
 
Number system
Number systemNumber system
Number system
 
number system
number systemnumber system
number system
 
Unit 4.docx
Unit 4.docxUnit 4.docx
Unit 4.docx
 
005618132.pdf
005618132.pdf005618132.pdf
005618132.pdf
 
B sc ii sem unit 2(a) ns
B sc ii sem  unit 2(a) nsB sc ii sem  unit 2(a) ns
B sc ii sem unit 2(a) ns
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Hexa to binary

  • 1. Conversion of a hexadecimal number to a binary number METHOD 1 First it should be converted to its equivalent decimal number Then convert the decimal number so obtained to its binary equivalent http://improvec.blogspot.in/ 1
  • 2. METHOD 2 Each digit of the given hexadecimal number should be converted to its 4-bit binary equivalent http://improvec.blogspot.in/ 2
  • 3. 1.Convert the hexadecimal number ABC to its equivalent binary number  METHOD 1 (ABC)16 = A *162 + B*161 + C*160 = 10 *256 + 11*16 + 12*1 = 2560 + 176 + 12 = (2748)10 (1010 1011 1100)10 http://improvec.blogspot.in/ 3
  • 4. Now converting this decimal into binary Division Remainders 2 2748 2 1374 0 2 687 0 2 343 1 2 171 1 2 85 1 2 42 1 2 21 0 2 10 1 2 5 0 2 2 1 2 1 0 2 0 1 Thus (ABC)16 = (2748)10 = (101010111100) http://improvec.blogspot.in/ 4
  • 5. METHOD 2 A16 = (10)10 = (1010)2 2 10 B16 = (11)10 = (1011)2 2 5 0 C16 = (12)10 = (1100)2 2 2 1 2 1 0 0 1 (10)10 = (1010)2 (ABC)16 = ( 1010 1011 1100 )2 http://improvec.blogspot.in/ 5
  • 6. 2. Convert the hexadecimal number 6B9 to its equivalent binary number  Each digit of the given hexadecimal number is converted to its 4-bit binary equivalent (6B9)16 = (0110) (1011)(1001) = (011010111001)2 = (011010111001)2 http://improvec.blogspot.in/ 6
  • 7. 3. Convert the hexadecimal number 6D.3A to its equivalent binary number  Each digit of the given hexadecimal number is converted to its 4-bit binary equivalent (6D.3A)16 = (0110) (1101) . (0011) (1010) =(01101101.00111010)2 =(1101101.0011101)2 http://improvec.blogspot.in/ 7
  • 8. Summary In this class, you have learnt about  Conversions of binary number to hexadecimal  Conversions of hexadecimal to binary number http://improvec.blogspot.in/ 8
  • 9. Frequently Asked Questions  Explain how to convert a binary number to equivalent hexadecimal  Explain how to convert a hexa decimal number to equivalent binary http://improvec.blogspot.in/ 9
  • 10. Quiz  The binary equivalent of (ABC) a. 1010 1011 1100 b.1010 1100 1100 c. 1011 1010 1101 Answer: a http://improvec.blogspot.in/ 10