ALL >> Education >> View Article
Convert Decimal Numbers To Hexadecimal Numbers
Most people will never have a need for this conversion but if you work in software development, IT, computer hardware or a slew of other areas surrounding the computer industry, you at some point will need to know how to do this.
As complex as it might sounds there is a very easy algorithm that you can use in order to figure out what the hexadecimal number equivalent is when given a decimal number.
As you might know decimal is base ten. It is the standard numbering system that is used everywhere in the world. Hexadecimal is base sixteen. From numbers one through nine they look identical, however once reach ten this is where it differs. Below is the decimal to hex conversion for numbers 1 through 15:
1 through 9 decimal = 1 through 9 Hex, (i.e. 1=1, 2=2, etc)
Decimal Number 10 = Hexadecimal Letter A
Decimal Number 11 = Hexadecimal Letter B
Decimal Number 12 = Hexadecimal Letter C
Decimal Number 13 = Hexadecimal Letter D
Decimal Number 14 = Hexadecimal Letter E
Decimal Number 15 = Hexadecimal Letter F
As you can see if you were converting a number from one ...
... through 15 it would be easy, but what if you had to convert say decimal number 3488 to its Hex equivalent. It's easier than you think; here is how it is done.
In this article we represent division as the backslash ( / ). The backslash is commonly used in programming languages to represent division so I will use it here.
So our number to convert is 3488. The first step is to divide 3488 by 16. Remember Hex is base 16 so that is where we get the number from.
3488/16 = 218 with a remainder of 0 (zero)
Make a note of the number zero, that is part of our answer. The next step is to see if our answer is greater than or equal to 16. Well 218 is therefore we need to continue. Our next step is to divide 218 by 16.
218/16 = 13 with a remainder of 10
Again make a note of the number 10. That too is part of our answer. You can probably see where I am going with this. As long as the answer is greater than or equal to 16 you will keep dividing the answer by 16 until it is less than 16. Low and behold we are at that point in our example because 13 is less than 16. What do you do now? Well you have now have your answer and it looks like this:
13 10 0
But remember in Hex we only count numbers up through 9 and then use letters for 10 through 15. Therefore we have to convert the numbers greater than 9 in our answer to its letter equivalent. So for the answer we have:
13 = D
10 = A
0 = 0
So our final answer is DA0. You can confidently say that the Hex equivalent for decimal number 3488 is DA0.
You are now fully equipped to convert any decimal number to its Hex equivalent. Happy calculations!
About the Author:
Mr. Tucker is a regular contributor on Bukisa, an online community for writers that pays them for their articles. You can also follow Bruce on Twitter.
Add Comment
Education Articles
1. Hidden Data Jobs Market Growing Fast In AgraAuthor: Dhanya
2. Sap Ariba Course | Sap Ariba Online Training In Hyderabad
Author: gollakalyan
3. Best Sap Training Institutes In Hyderabad Ameerpet
Author: naveen
4. The Ultimate Guide To Choosing The Best Sat Coaching In 2026
Author: rukhsar
5. Master Salesforce Data Cloud Course | Online Training
Author: Vamsi Ulavapati
6. Dynamics 365 Crm Course | Microsoft Dynamics Crm
Author: krishna
7. Skill-based Courses That Guarantee Job Placement
Author: UniversityGuru
8. Comptia Casp+ Certification: The Elite Path To Advanced Cybersecurity Mastery
Author: Passyourcert
9. Mbbs In Romania: Expert Guidance For Indian Students!
Author: Rajesh Jain
10. Comptia Security+ Certification: Your Launchpad Into The Cybersecurity Universe
Author: Passyourcert
11. Sap Abap Rap Course In Hyderabad | Sap Rap Training
Author: gollakalyan
12. Aima – The Smart Choice For A Reliable Management Aptitude Test
Author: Aima Courses
13. Data Engineering Training Institute In Bangalore – Master Real-world Data Skills With Ksr Datavision
Author: Ksr
14. Sap Btp Cap Course Online | Sap Fiori Online Training
Author: Visualpath
15. Advanced Multilevel Inverter Projects With Harmonic Reduction And Performance Analysis
Author: Kalyan






