Decimal to Hexadecimal Conversion Solved Examples
Example 1: Convert 20 in decimal to hexadecimal
Solution:
We know that to convert a number from decimal to hexadecimal we need to divide the number by 16 and then successively divide the quotient by 16 until quotient is zero
20 ÷ 16 gives Q1 = 1, R1 = 4
1 ÷ 16 gives Q2 = 0, R2 = 1
Hence, 20 in decimal is equal to 14 in hexadecimal
Example 2: Convert (678)10 to Hexadecimal
Solution:
678 ÷ 16 gives Q1 = 42, R1 = 6
42 ÷ 16 gives Q2 = 2, R2 = 10 = A
2 ÷ 16 gives Q3 = 0, R3 = 2
Hence, (678)10 = 2A6 in Hexadecimal
Example 3: Convert (1429)10 into Hexadecimal
Solution:
1429 ÷ 16 gives Q1 = 89 and R1 = 5
89 ÷ 16 gives Q2 = 5 and R2 = 9
5 ÷ 16 gives Q3 = 0 and R3 = 5
Hence (1429)10 = 595 in Hexadecimal
Example 4: Convert 0.125 in Hexadcimal
Solution:
To convert a fractional number we multiply the fractional part by 16 and then again multiply the fractional part of the product by 16 till the number becomes zero and then write the result from the first product and not from the last as we do normally.
0.125 ⨯ 16 = 2.0
0 ⨯ 16 = 0
Hence, (.125)10 = 0.2
Decimal to Hexadecimal Converter
Decimal to Hexadecimal Calculator is a free online tool prepared by GeekforGeeks that converts the given value of the decimal number into the value of the hexadecimal number. It is a fast and easy-to-use tool that helps students solve various problems.
Table of Content
- How to use Decimal to Hexadecimal Calculator?
- What is Decimal to Hexadecimal Conversion?
- Convert Decimal to Hexadecimal
- Decimal to Hexadecimal Table
- Decimal to Hexadecimal Conversion Solved Examples
- Practice Questions
- FAQs