+0  
 
0
771
2
avatar

how to change from dec to hexadec? If i take tha 666 its in binary 0010 1100 1010 SO the first bit is 2 second one 12 and 10 but it has to be 29A pls someone help me

 May 26, 2016
 #1
avatar+154 
0

1,2,4,8,16,32,64,128

Steps:

Divide the decimal number by 16. Treat the division as an integer division.

Write down the remainder (in hexadecimal).

Divide the result again by 16. Treat the division as an integer division.

Repeat step 2 and 3 until result is 0.

The hex value is the digit sequence of the remainders from the last to first.

 May 26, 2016
 #2
avatar
0

666/16=41 -the remainder is 10=A in Hex

41/16 =2 and the remainder is 9=9 in Hex

2 does not divide 16 and comes down as 2. So you have from bottom to top: 29A in Hex

 May 26, 2016

0 Online Users