Jenny's Hobby Farm

I (Jenny ) used to be an assembler language programmer back in the days of the dinosaurs, nearly 50 years ago. I have written these pages for anyone who is now trying to learn the hex system of numbers that I used to have to interpret on a regular basis in the old days.

HOW TO CONVERT ANY DECIMAL NUMBER TO HEX

Dec = decimal, Hex Equi = Hexadecimal Equivalent, Rem = Remainder

EXAMPLE CONVERSION - DECIMAL TO HEX

 Decimal Hex Equivalent 39,619 9AC3

 Hex = Decimal Hex   = Dec Comment Divide decimal number successively by 16 Remainderstill in decimal Remstill in Dec Hex Equivalentof remainder 0=0 1=1 2=2 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