How to convert hex to decimal?
To convert hex to decimal (base-16 to base-10), repeat the steps below for all digits from the last hex symbol on the right to the first hex symbol on the left.
1 - Get the decimal equivalent of the hex digit.
2 - Multiply decimal equivalent of the hex digit by 16 power of the digit's location. The power starts from 0 for the last hex digit. Increase that power by 1 for each next digit as you go to the left.
3 - Sum all the multipliers to get the hex number.
For example, these are the steps to convert hex number "3CD" to decimal:
From the table: D = 13, C = 12
3DC = (3 * 162) + (13 * 161) + (12 * 160)
3DC = 768 + 208 + 12
3DC = 988
You may also use base converter to convert between all number bases.
How to convert decimal to hex?
To convert decimal to hex, considering as an integer, divide the decimal number by 16 repeatedly until the quotient is 0 and get the remainder for each iteration. These are the steps to convert from decimal to hex:
1 - Divide the decimal number by 16.
2 - Keep aside the remainder left. If the remainder is greater than 9, then get the hex equivalent of it.
3 - Get the integer quotient for the next iteration and repeat till you get the quotient value is 0.
4 - At the end, reverse the order of the remainders to get the hex number.
For example, these are the steps to convert decimal number "876" to hex:
1 - 876 / 16
2 - Quotient (54), Remainder (12)
3 - 54 / 16
4 - Quotient(3), Remainder (6)
5 - 3 / 16
6 - Quotient(0), Remainder (3)
7 - Reverse the remainders 12 (C), 6, 3
8 - 876 = 36C
What is Hexadecimal Numeral System?
Hexadecimal (hex) numeral system is a base-16 numeral system that uses 16 symbols to represent values from 0 to 15. These symbols are the 10 decimal digits "0"–"9" to represent values from zero to nine and the first six letters of the English alphabet "A"–"F" to represent values from ten to fifteen.
Hex is mostly used to represent binary numbers in a friendly way. Each of the symbols in hex numbers are the representation of four binary bits.
To convert between hex and binary numbers, please check hex to binary converter.
What is Decimal Numeral System?
Decimal numeral system is base-10 numeral system that uses 10 decimal digits to represent values from "0"–"9".
To convert between decimal and binary numbers, please check decimal to binary converter.