Cisco IPv6 Decimal to Hexadecimal
How to Convert Decimal to Hexadecimal
By Charles Ross CCNP #CSCO10444244
I know converting decimal numbers to hexadecimal numbers without using a calculator sounds like a very complicated process; but, in reality it’s actually pretty simple if you know the steps.
In this article, I’ll teach you how to convert DECIMAL numbers into HEXADECIMAL numbers without using a calculator.
Steps:
Create a “Results” column (this column will contain the whole number results of dividing the original decimal number and its results with the number 16).
Create a “Results Remainder” column (this column will contain the results of multiplying the numbers to the right of the decimal point with the number 16). If after performing step 1, you don’t have any numbers to the right of the decimal point to perform step 2, you’ll simply write a zero in the “Results Remainder” column for each step 1 attempt.
Repeat, Steps 1 and 2 until the “Results” column equals the value of zero; and the “Results Remainder” column has no more results to multiply.
Then simply write down the results of the “Results Remainder” column in reverse order (from the last number to the first number) to achieve the hexadecimal number.
Here’s an example:
We converted the decimal number of 150 into hexadecimal.
Step #1: We divided the decimal number 150 by 16. Like you see in the example below: 150 / 16 = 9.375 ------------------------------Step #2: We then placed the number nine (which is the whole number) in the "Results" column. |
Results |
Remainder Results 6 |
Step #5: We then divided the whole number result (the number 9) by 16. Like you see in the example below: 9 / 16 = 0.5625 ------------------------------Step #6: We then placed the number zero (which is the whole number) in the "Results" column. |
0 |
9 |
To your success,
Charles Ross
CCNP #CSCO10444244