Information Technology Reference
In-Depth Information
Conversion Example 6: Convert 60 h to Decimal
6 x 16 = 96
0 x 1 = 0
96 d
Conversion Example 7: Convert 100 h to Decimal
1 x 256 = 256
0 x 16 = 0
0 x 1 = 0
256 d
Conversion Example 8: Convert 1DA h to Decimal
1 x 256 = 256
13 x 16 = 208
10 x 1 = 10
474 d
An Alternate Method to Convert from Hex to Decimal
Another way to convert is to go from hex to binary and then binary to decimal.
Binary Numbers
The binary number system uses two digits: 1 and 0. Binary numbers are primarily used by
computer systems. IP addresses and MAC addresses are represented by binary numbers. The
number of binary 1s or 0s is the number of bits. For example, 01101010 is a binary number
with 8 bits. An IP address has 32 bits and a MAC address has 48 bits. Table 2-2 shows that IP
addresses are usually represented in dotted decimal format; therefore, it is helpful to know how
to covert between binary and decimal numbers. MAC addresses are usually represented in
hexadecimal numbers; therefore, it is helpful to know how to covert between binary and
hexadecimal numbers.
Binary Representation of IP and MAC Addresses
Table 2-2
Binary
Dotted Decimal
Hexadecimal
IP Address
00101000 10001010 01010101 10101010
40.138.85.170
Mac Address
00001100 10100001 10010111 01010001
00000001 10010001
0C:A1:97:51:01:91
 
Search WWH ::




Custom Search