From: Chua, Parry (Parry.Chua@xxxxxxxxxx)
Date: Thu Apr 04 2002 - 01:03:39 GMT-3
   
If you need to use hand written coversion, this is the faster way:
1. covnert to oct, decimal/8, eg dec:1234 = 0ct 2322
2. Break the result of each oct digit into 3 bit binary ,2322 = 010 011 010 010
3. Group from right to left into 4 bit binary and write in hex
    0100 1101 0010 = hex 4D2
Parry Chua
-----Original Message-----
From: Keith E Decker [mailto:st5ba@Bayou.UH.EDU]
Sent: Thursday, April 04, 2002 11:39 AM
To: Giveortake@aol.com
Cc: ccielab@groupstudy.com
Subject: Re: hex conversion
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:54 GMT-3