Decimals to hex

 Step 1 is to get your powers of 16 ready as hexadecimals are base 16, they are:

16^0=1

16^1=16

16^2=256

16^3=4096

Step 2

Look at the number you are converting, for example 2000 and see what the largest number on your powers of 16 is that you can fit into it.

For 2000 this is 256

Divide your number by the largest number you can fit in.

2000/256=7.8125

So 265 can fit into 2000 7 times with some remainder so the first column in our conversion will be 7



Step 3 Work out the remainder

So we know 256 fits into 2000 a bit over 7 times but what is remainder after that 7. If we multiply our number (256) by the amount of times if fit into our target (2000) and subtract that from the target (2000) we can see what the remainder is.

2000-(256*7)

208 is our remainder, now we move to the next column.

 Step 4 What fits into the remainder

We have 208 remaining, what is the largest number on our chart that can fit into that? 16

208/16=13

Our outcome was 13 so our second column is 13


combine columns and convert large numbers

So our first column (256) was 7

Our second column (16) was 13

Our last column (1) would be 0 as we had no remainder


Comments