jcadima
5/12/2017 - 3:51 PM

convert hexadecimal to decimal

convert hexadecimal to decimal


http://www.binaryhexconverter.com/hex-to-decimal-converter

https://www.yumpu.com/en/document/view/4407336/hex-value-0x00-0x01-0x02-0x03-0x04-0x05-0x06-0x07-0x08-0x09-


0x00 = 0000 0000 = 0
0x01 = 0000 0001 = 1
0x02 = 0000 0010 = 2
0x03 = 0000 0011 = 3
0x04 = 0000 0100 = 4
0x05 = 0000 0101 = 5
0x06 = 0000 0110 = 6
0x07 = 0000 0111 = 7
0x08 = 0000 1000 = 8
0x09 = 0000 1001 = 9
0x0A = 0000 1010 = 10 OR A = 10
0x0B = 0000 1011 = 11
0x0C = 0000 1100 = 12
0x0D = 0000 1101 = 13
0x0E = 0000 1110 = 14 OR E = 14
0x0F = 0000 1111 = 15 OR F = 15


// note 
0x10 = 16   (0x10)__16  = (16)__10
0x11 = 17,  (0x11)__16  = (17)__10
0x12 = 18   (0x12)__16  = (18)__10
0x20 = 32
0x30 = 48
0x40 = 64
0x50 = 80
0x60 = 96
0x70 = 112
0x80 = 128
0x90 = 144
0xA0 = 160
0xB0 = 176
0xC0 = 192
0xD0 = 208
0xE0 = 224
0xF0 = 240
0xFF = 255

Notice its going from descending  ^2   ^1   ^0
7DE is a hex number
7DE = (7 * 16^2) + (13 * 16^1) + (14 * 16^0) 
7DE = (7 * 256) + (13 * 16) + (14 * 1) 
7DE = 1792 + 208 + 14 
7DE = 2014 (in decimal number)