Decimal to Hexadecimal Conversion | GATE Notes (2024)

For converting a number from the base 10 to the base 16, first write down that number and then divide it by the number 16. Then note the remainder obtained from the division. Ultimately, divide the quotient of the division obtained by 16. The obtained remainder should be noted. This process needs to be repeated till the quotient happens to be 0. Write the values of the remainders in this process from the bottom to the top. Thus, it will be the answer that is required.

Before you proceed ahead with this concept, check out the basics of conversion to various bases. In this article, we will take a look at the Decimal to Hexadecimal Conversion according to the GATE Syllabus for CSE (Computer Science Engineering). Read ahead to learn more.

Table of Contents

  • How to Perform Decimal to Hexadecimal Conversion?
    • Case 01: In the case of Numbers that Carry No Fractional Part
    • Case 02: In the case of Numbers that Carry a Fractional Part
      • For the Real Part
      • For the Fractional Part
  • Practice Problems on Decimal to Hexadecimal Conversion

How to Perform Decimal to Hexadecimal Conversion?

In the case of number systems, it is very crucial that one has an in-depth knowledge of how one can convert various numbers from a given base to another one. In this article, we will learn how one can convert some numbers from any given base 10 to base 16.

One can convert an available number from base 10 to other bases using the division method along with the multiplication method. Thus, the following two cases would be possible here:

Case 01: In the case of Numbers that Carry No Fractional Part:

Use the division method when you want to convert any such number from base 10 to any other base. Perform this division with the required base.

Here are the steps that are required for converting a number from decimal to hexadecimal:

  • Divide the available number (present in base 10 with us) with 16. Do this until the final result is less than 16.
  • Traverse the remainders available to us from bottom to top. This way, you get the number that is required in base 16.

Case 02: In the case of Numbers that Carry a Fractional Part:

Treat the real and the fractional part separately when you want to convert any such available decimal numbers with base 10 to hexadecimal with base 16.

For the Real Part-

When we want to convert the real part of a number from decimal to any other base, the steps involved would be the same as above.

For the Fractional Part-

Use the multiplication method if you want to convert a number’s fractional part from decimal to any other base. Perform the multiplication using the required base.

Here are the steps that are required for converting a number from decimal to hexadecimal:

  • Multiply the available fraction (given in base 10) using 16.
  • Separately write the real and the fractional part of our result so as to obtain them separately.
  • Multiply the fractional part by 16.
  • Separately write the real and the fractional part of this obtained result so as to obtain it separately.
  • Repeat this procedure unless and until the fractional part happens to be 0.
  • If the fractional part doesn’t terminate to 0, then you can find the result of the fraction up to as many places as required.

The Required Number in the Base 16 = A series of the real part of results obtained by multiplication, in the steps above from top to bottom.

Practice Problems on Decimal to Hexadecimal Conversion

1. Convert the given numbers from the base 10 to the base 16-

1.1. (2020)10

Answer – We use the division method here, and we get-

From here, we get (2020)10 = (7E4)16

1.2. (2020.65625)10

Answer – We will use the real and the fractional part separately here.

The real part is (2020)10. Here, we will use the division method and get-

See Also
ASCII Chart

(2020)10 = (7E4)16

The fractional part here is (0.65625)10. We will convert the fractional part of base 10 to base 16. Using the multiplication method here, we will get-

Fractional partReal Part
0.65625 x 160.510 = A
0.5 x 160.08

Since the fractional part becomes 0 here, we will finally stop. Here, the fractional part is getting terminated to 0 after 2 subsequent iterations. If we traverse the real part from top to bottom, we obtain the number in the hexadecimal base or base 16.

Thus, here, (0.65625)10 = (0.A8)16

If we combine the results of the real and the fractional part, we get-

(2020.65625)10 = (7E4.A8)16

1.3. (172)10

Answer – We use the division method here, and we get-

From here, we get (172)10 = (AC)16

1.4. (172.983)10

Answer – We will use the real and the fractional part separately here.

The real part is (172)10. Here, we will use the division method, and we get-

(172)10 = (AC)16

The fractional part here is (0.983)10. We will convert the fractional part of base 10 to base 16. Using the multiplication method here, we will get-

Fractional partReal Part
0.983 x 160.72815 = F
0.728 x 160.64811 = B
0.648 x 160.36810 = A
0.368 x 160.8885

Since the fractional part does not become 0 here, we will find the values up to a total of 4 decimal places. So if we traverse the real part from top to bottom, we obtain the number in the hexadecimal base or base 16.

Thus, here, (0.983)10 = (0.FBA5)16

If we combine the results of the real and the fractional part, we will get-

(172.983)10 = (AC.FBA5)16

Keep learning and stay tuned to get the latest updates onGATE Examalong withGATE Eligibility Criteria,GATE 2023,GATE Admit Card,GATE Syllabus,GATE Previous Year Question Paper, and more.

Also Explore,

  • Combinational Circuits
  • Boolean Algebra
  • Laws of Boolean Algebra
  • Introduction of K-Map (Karnaugh Map)
  • Various Implicants in K-Map
  • Representation of Boolean Functions
  • Combinational and sequential circuits
  • Flip-Flop Types, Conversion and Applications
  • The Base of Number System
  • Conversion to Base 10
  • Number System Notes
  • Decimal to Binary Conversion
  • Decimal to Octal Conversion
  • Minimization of Boolean Functions
Decimal to Hexadecimal Conversion | GATE Notes (2024)
Top Articles
CDs vs. Bonds: What's the Difference? - NerdWallet
What Additional Authentication Method Does SFTP Use To Ensure That Data Is Secure? - Newsoftwares.net Blog
Beacon Schnider
Craigslist Kennewick Pasco Richland
Tribune Seymour
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Remnant Graveyard Elf
Craigslist Pets Sac
Los Angeles Craigs List
Mini Handy 2024: Die besten Mini Smartphones | Purdroid.de
Best Forensic Pathology Careers + Salary Outlook | HealthGrad
Pekin Soccer Tournament
3S Bivy Cover 2D Gen
Ms Rabbit 305
Msu 247 Football
Saritaprivate
Tinker Repo
Isaidup
Mj Nails Derby Ct
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
The Listings Project New York
Weve Got You Surrounded Meme
Craigslist Alo
Aliciabibs
Colonial Executive Park - CRE Consultants
Jcp Meevo Com
Bolsa Feels Bad For Sancho's Loss.
Workshops - Canadian Dam Association (CDA-ACB)
55Th And Kedzie Elite Staffing
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
Speechwire Login
What is Software Defined Networking (SDN)? - GeeksforGeeks
Little Einsteins Transcript
Darktide Terrifying Barrage
Missing 2023 Showtimes Near Grand Theatres - Bismarck
Frostbite Blaster
11 Pm Pst
4083519708
Metro By T Mobile Sign In
Midsouthshooters Supply
Craigslist Summersville West Virginia
Tirage Rapid Georgia
Bones And All Showtimes Near Johnstown Movieplex
Blackwolf Run Pro Shop
COVID-19/Coronavirus Assistance Programs | FindHelp.org
Gon Deer Forum
Best Suv In 2010
Mail2World Sign Up
Ciara Rose Scalia-Hirschman
Subdomain Finer
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 6419

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.