Web Elfin Design
HOW TO CONVERT ANY DECIMAL NUMBER TO HEX
 
PRINTER FRIENDLY VERSION  

EXAMPLE CONVERSION - DECIMAL TO HEX

Decimal Hex Equivalent
39,619 9AC3


Hex=Decimal
Comment Divide decimal number successively by 16 Remainder still in decimal Hex Equivalent of remainder
0=0
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9
A=10
B=11
C=12
D=13
E=14
F=15
      col 3 col 2 col 1 col 0
divide decimal number to be converted by 16 and put the remainder in col 0 39619 ÷ 16 = 2476 * rem 3       3
divide answer from row above by 16 and put the remainder in col 1 2476 ÷ 16 = 154 rem 12     C  
divide answer from row above by 16 and put the remainder in column 2 154 ÷ 16 = 9 rem 10   A    
divide answer from row above by 16 and put the answer in column 3 9 ÷ 16 = 0 rem 9 9      
Write out the answer, starting with column 3 and going through to column zero. Answer is Hex 9AC3

* TO CALCULATE THE REMAINDER

Divide 39619 by 16. The answer is 2476.1874
Take the numbers after the point and multiply by 16
.1874 x 16 = 2.9984
The remainder is 2.9984 rounded up to the next whole number = 3
Therefore 39619 ÷ 16 = 2476 remainder 3







Back to the top


Copyright © 2006 Web Elfin Design