How to convert decimal fraction to hexadecimal ?

How to convert decimal fraction to hexadecimal ?
Satyam Chaudhary
Number System Sep 20, 2023

Are you looking for an easy way to convert decimal fractions to hexadecimal? If so, you've come to the right place!

In this blog post, we'll walk you through the steps of how to convert decimal fractions to hexadecimal.

Hexadecimal is a base-16 number system that is often used in computing, and understanding how to convert decimal fractions to hexadecimal can be useful in many areas, such as programming and web development.

So let's get started!

What are decimal fraction ?

Decimal fractions are numbers that contain a decimal point, such as 0.5, 0.25, and 0.75. They are used to represent a fraction of a whole number or represent a fractional part of a whole number.

What are hexadecimal number ?

Hexadecimal numbers are base-16 numbers that use the digits 0-9 and A-F (or a-f) to represent values.

They are commonly used in computer programming to represent a variety of values, including colors, memory addresses, and character encoding.

How to convert decimal fraction to hexadecimal ?

Converting a decimal fraction to hexadecimal number involves the following steps:

  1. First, we calculate the integer part of the decimal point by dividing the octal base number i.e. 16 until the quotient is less than 16.

  2. The second part is calculated on the fraction part of the decimal number where the number is multiplied with the base number 16 until the fractional part is equal to zero.

  3. we keep the integer part separate and the fractional part separate.

The final hexadecimal number is calculated by adding both the integer and the fractional number.

Decimal to Hexadecimal Table

To convert the decimal number system to hexadecimal, we have to remember the table given below, to solve the problems in a quick way.

fig 1:Decimal to Hexadecimal Table

You can easily understand by the help of below example

fig 2:Converting a decimal fraction 19.35 to its hexadecimal equivalent

Explanation of above problem

To convert a decimal fraction 19.35 into a hexadecimal number, we have to follow these steps:

  1. Separate the decimal number into two parts - the integer and the fractional. So, 19.35 = 19 + 35.

  2. Convert the integer part of the number first. So, we begin with 19 first by dividing it by the base number 16 until the quotient is less than 16.

    Hence, 19 is 13 in an hexadecimal number.

  3. Once the integer hexadecimal number is obtained, we proceed to the fractional part. So, 0.35 is multiplied by 16 (hexadecimal base number) where the result is again divided into its integer part and fractional part.

  4. Add both the integer and the fractional part together to obtain the octal number. Hence, 13 + 0.59= 13.59.

By following those above steps, you can easily convert any decimal to its hexadecimal equivalent.

Conclusion

In conclusion, the process of converting a decimal fraction to a hexadecimal is not overly complicated. With the help of some simple mathematical equations and the right tools, anyone can easily convert a decimal fraction to a hexadecimal with relative ease.

Understanding the principles behind the conversion process is sure to be beneficial in a wide range of computing applications.

decimal fraction
hexadecimal
number system
digital electronics

Satyam Chaudhary


Satyam is a brilliant Engineering Undergraduate and proud Indian. He is passoinate towards web development and acquiring new skills.

He help students in understanding the concepts with a correct approach and solve their academic problems.

We are here to clear your doubts with an easy step by step approach.