How to convert Decimal to Hexadecimal? Give Example?
sabastian 18-March-2009 12:10:12 PM

Comments


very easy to convert decimal to hexa decimal
lets take one eg
suppose 16 decimal you want to convert in hexa decimal divide by 16
16/ 16 = 1 and remainder also 1 so answer is 11

another eg

20 decimal covert to hex value

20/16 = 1 as 16*1 = 16 and remainder 4
take number from down to up in division

so 14 is answer
Posted by saurabh2dixit


The easiest way to get from decimal to hexadecimal and back is to go through binary. Take the example we used earlier in which we converted 176 decimal to binary:

176 = 10110000

Given that a single hex character represents 4 binary bits, all we need to do is to break the 8-bit string 10110000 into two 4-bit strings like this:

1011 0000

Now, simply match the 4-bit strings to their hex equivalent:

1011 = B 0000 = 0

The answer is simply 10110000 = 0xB0.

The "0x" in front of the answer is an expression that means "the following is in hex." This is needed because if the hex value was 27, we could not distinguish it from 27 decimal.
Posted by AbramianDaniel


Its a good link please visit http://www.permadi.com/tutorial/numDecToHex/
Posted by HamidAliKhan


plz visit www.statman.info/conversions/hexadecimal.html
Posted by burhanalipk


Please visit:

http://www.permadi.com/tutorial/numDecToHex/
Posted by sagitraz



Posted: 19-March-2009 02:48:02 AM By: sagitraz

Please visit:

http://www.permadi.com/tutorial/numDecToHex/

Posted: 19-March-2009 04:06:09 AM By: burhanalipk

plz visit www.statman.info/conversions/hexadecimal.html

Posted: 19-March-2009 03:06:12 PM By: HamidAliKhan

Its a good link please visit http://www.permadi.com/tutorial/numDecToHex/

Posted: 19-March-2009 03:51:30 PM By: AbramianDaniel

The easiest way to get from decimal to hexadecimal and back is to go through binary. Take the example we used earlier in which we converted 176 decimal to binary:

176 = 10110000

Given that a single hex character represents 4 binary bits, all we need to do is to break the 8-bit string 10110000 into two 4-bit strings like this:

1011 0000

Now, simply match the 4-bit strings to their hex equivalent:

1011 = B 0000 = 0

The answer is simply 10110000 = 0xB0.

The "0x" in front of the answer is an expression that means "the following is in hex." This is needed because if the hex value was 27, we could not distinguish it from 27 decimal.

Posted: 21-March-2009 11:08:08 AM By: saurabh2dixit

very easy to convert decimal to hexa decimal
lets take one eg
suppose 16 decimal you want to convert in hexa decimal divide by 16
16/ 16 = 1 and remainder also 1 so answer is 11

another eg

20 decimal covert to hex value

20/16 = 1 as 16*1 = 16 and remainder 4
take number from down to up in division

so 14 is answer