> Method for converting denary to hexadecimal?

Method for converting denary to hexadecimal?

Posted at: 2015-01-07 
denary is an obsolete word for decimal.





Use a calculator.





here are some examples



decimal . . . hex



0 thru 9 . . . same



10 A



11 B



12 C



13 D



14 E



15 F



16 10



17 11



18 12



19 13



20 14



21 15



22 16



23 17



24 18



25 19



26 1A



27 1B



28 1C



29 1D



30 1E



31 1F



32 20



.....

I had to look up denary. It is a less common (at least in the United States) term for decimal (base 10).

https://www.google.com/search?q=denary&o...

So you take your number - for example let's do 325 (base 10)

So divide by 16 (the base for hexidecimal): 325 / 16 = 20 remainder 5,

So 5 is the least significant digit (the ones place).

Now take the quotient of 20 and divide by 16: 20/16 = 1 remainder 4,

so 4 is the next digit.( the 16's place)

Then since the quotient (1) is less than 16, the most significant digit is 1 (the 256 place).

The number is 145 (base16). If we had gotten a remainder of 10 or higher, we use the letters A through F to represent 10 through 15.

We can convert the number back to base-10 easily. Take 1 x 162 = 256.

Then 4 x 16 = 64. then 5 x 1 = 5.

Add them up: 256 + 64 + 5 = 325.

Convert to binary e.g.

64 = 01000000

split that up into 2, 4 bit sections

0100 0000

Left Side = 4

Right side = 0

4 in hexadecimal is 4

0 in hexadecimal is 0

therefore = 40

you mean binary to hexadecimal ?





binary is in base 2 and hexadecimal is base 16.





you can go from one to the other by use of our base 10 system. So you would convert to that.





From there, you would convert to hexadecimal.