View Single Post
  #5  
Old 12-29-2004, 09:04
JMI JMI is offline
Leader
 
Join Date: Jan 2002
Posts: 1,627
Rept. Given: 5
Rept. Rcvd 199 Times in 99 Posts
Thanks Given: 0
Thanks Rcvd at 98 Times in 96 Posts
JMI Reputation: 100-199 JMI Reputation: 100-199
You need to read up on counting in hexadecimal.
It refers to the base-16 number system, which consists of 16 unique symbols: the numbers 0 to 9 and the letters A to F. The numbers are:

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

For example, the decimal number 15 is represented as F in the hexadecimal numbering system. The hexadecimal system is useful because it can represent every byte (8 bits) as two consecutive hexadecimal digits. It is easier for humans to read hexadecimal numbers than binary numbers.
To convert a value from hexadecimal to binary, you merely translate each hexadecimal digit into its 4-bit binary equivalent. Hexadecimal numbers have either an 0x prefix or an h suffix. For example, the hexadecimal number

0x3F7A

translates to the following binary number:

0011 1111 0111 1010

The base 16 notational system for representing real numbers. The digits used to represent numbers using hexadecimal notation are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. The following table gives the hexadecimal equivalents of the first few decimal numbers.

1 = 1 11 = B 21 = 15
2 = 2 12 = C 22 = 16
3 = 3 13 = D 23 = 17
4 = 4 14 = E 24 = 18
5 = 5 15 = F 25 = 19
6 = 6 16 = 10 26 = 1A
7 = 7 17 = 11 27 = 1B
8 = 8 18 = 12 28 = 1C
9 = 9 19 = 13 29 = 1D
10 =A 20 = 14 30 = 1E

and so on and so on.......

The hexadecimal system is particularly important in computer programming, since four bits (each consisting of a one or zero) can be succinctly expressed using a single hexadecimal digit. Two hexadecimal digits represent numbers from 0 to 255, a common range used, for example, to specify colors. Thus, in the HTML language of the web, colors are specified using three pairs of hexadecimal digits RRGGBB, where RR is the amount of red, GG the amount of green, and BB the amount of blue.

In hexadecimal, numbers with increasing digits are called metadromes, those with nondecreasing digits are called plaindrones, those with nonincreasing digits are called nialpdromes, and those with decreasing digits are called katadromes.

There's a good start.

Regards,
__________________
JMI
Reply With Quote