From: Keith E Decker (st5ba@xxxxxxxxxxxx)
Date: Thu Apr 04 2002 - 00:38:39 GMT-3
Hex conversion...very similar to base 10 number system, only it's powers
of 16, not powers of 10.
For example... base 10 number system we all know and love:
5195
This is the same as:
5*10^3 + 1*10^2 + 9*10^1 + 5*10^0
or
5000 + 100 + 90 + 5
HEX is base 16, so you could have something like this:
0x7CA8
This is the same as:
7*16^3 + C*16^2 + A*16^1 + 8*16^0
or
7*4096 + 12*256 + 10*16 + 8
28672 + 3072 + 160 + 8 = 31912
As for translating the letters into numbers, that's pretty easy:
HEX DEC
=== ===
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10 <-- Base 10 has no more digits and recycles here
B 11 Base 16 has six more "digits" and keeps going
C 12
D 13
E 14
F 15
Keith
On Wed, 3 Apr 2002 Giveortake@aol.com wrote:
> Any have a GOOD link for Hex conversion? I am looking for a tutorial not a
> calculator!! Ok a calculator would help me check my work too!
>
> Thanks,
>
> David
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:53 GMT-3