Wednesday, December 30, 2009

Any one know of a book or a website that can teach me the hexadecimal numbering systems?

0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F


A = 10


B = 11


C = 12


D = 13


E = 14


F = 15Any one know of a book or a website that can teach me the hexadecimal numbering systems?
http://www.dcs.bbk.ac.uk/~roger/binhex.html





Hexadecimal is actually fairly easy to use and understand. It is just a base 16 number instead of a base 10 number like you are used to.


so you have 0-9 then a-f. so 10=a, 11=b 12=c 13=d 14=e15=f





You take the ';ones'; column and do 16^0 * x where x is in the ones column. For the ';tens'; column you do 16^1 * y where y is in the tens column and so on for the remaining places in the number.





So for 478b3 in hex you get the following in decimal or base 10.


4 * 16^4 + 7 * 16^3 + 8*16^2 + 11*16^1 (remember b=11) + 3*16^0Any one know of a book or a website that can teach me the hexadecimal numbering systems?
not off hand but it is rather simple


hex1 2 3 4 5 6 7 8 9 A B C D E F 10 11...............


dec1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17..............


lets say you have a hex value of CD then to get the decimal number all you do is take the decimal value times 16^placeholder + the decimal value


so (12x16^1)+13=205


a more difficult example


ACFF


(10x16^3)+(12x16^2)+(17x16^1)+15=44287





t is used in html for color as well as for programming. from what i understand it is kind of a short hand for binary code

No comments:

Post a Comment