The easiest way that I know of to convert hex to decimal and vice versa is
by converting both to binary first.
With hex, every 4 bits of binary is equal to 1 number or letter in hex.  And
of course, converting from decimal to binary is a piece of cake.  So using
the table below shouldn't pose a problem.

Decimal Binary  Hexadecimal

0               0000            0
1               0001            1
2               0010            2
3               0011            3
4               0100            4
5               0101            5
6               0110            6
7               0111            7
8               1000            8
9               1001            9
10              1010            A
11              1011            B
12              1100            C
13              1101            D
14              1110            E
15              1111            F

Now for an example.  Convert 172.16.1.1 to Hexadecimal.
In binary that looks like
10101100 00010000 00000001 00000001             

Now if every 4 bits of binary = 1 Hex character then the IP address above in
hex would be

AC100101

Please, someone correct me if I'm wrong.


Vijay Ramcharan, CCNP, MCSE


-----Original Message-----
From: Tayo Dada [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 7:46 PM
To: '[EMAIL PROTECTED]'
Subject: hexdecimal has got me stumped


is there any good documents on calculating hexdecimal figures into
decimal figures,

tayo


---------------------------------------------------------------  
"This email and any files transmitted with it are confidential, may be
privileged or otherwise protected from disclosure, and are intended
solely for the use of the individual or entity to whom they are
addressed. Any unauthorised disclosure, use or dissemination, either
whole or partial, is prohibited. 

If you have received this communication in error, please contact the
sender by telephone on +44 (0)20 7292 1900 or by replying to this email
and delete this message and any attachment from your system. If you are
not the intended recipent you must not copy this message or attachment
or disclose the contents to any other person. 

Opinions expressed are those of the sender and not necessarily those of
Trizechahn Europe."  
--------------------------------------------------------------- 

___________________________________
UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
FAQ, list archives, and subscription info: http://www.groupstudy.com
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

___________________________________
UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
FAQ, list archives, and subscription info: http://www.groupstudy.com
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to