Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Business Industries Finance Tax

Home > Hexadecimal


First Prev [ 1 2 ] Next Last

In mathematics, hexadecimal or simply hex is a numeral system with a radix or base of 16 , usually written using the symbols 0-9 and A-F or a-f. It is a useful system in computers because there is an easy mapping from four bits to a single hex digit. A byte can be represented as two consecutive hexadecimal digits.

For example, the decimal numeral 79 whose binary representation is 01001111 can be written as 4F in hexadecimal (4 = 0100, F = 1111). In some representations, the characters ~, !, @, #, $ and % are used instead of ABCDEF (respectively).

1 Representing hexadecimal

hex bin dec
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
A (~) 1010 10
B (!) 1011 11
C (@) 1100 12
D (#) 1101 13
E ($) 1110 14
F (%) 1111 15

There are many ways to denote hexadecimal numerals:

There is no single agreed-upon standard, so all the above conventions are in use, sometimes even in the same paper. However, as they are quite unambiguous, little difficulty arises from this.

The word "hexadecimal" is strange in that hexa is derived from the GreekThe Greek language ( /Elini'k{/) is an Indo-European language which has existed from around the 14th century BC in the Cretan inscriptions called Linear B. Mycenaean Greek of this period is distinguished from later Classical or Ancient Greek of the 8th ce έξι (hexi) for "six" and decimal is derived from the Latin for "ten". An older term was the pure Latin "sexidecimal", but that was changed because some people thought it too risque, and it also had an alternative meaning of "base 60". However, the word " sexagesimal" (base-60) retains the prefix.

A common use of hexadecimal numerals is found in web programming . The languages HTML and CSS use hexadecimal notation to specify colors on web pages; there is just the # symbol, not a separate symbol for "hexadecimal". 24-bit color is represented in the format #RRGGBB, where RR specifies the value of the Red component of the color, GG the Green component and BB the Blue component. E.g., a shade of red that is 238,9,63 in decimal is coded as #EE093F. See Web colors.

In URLs special characters can be coded hexadecimally in ASCII with for each byte a percent sign (%) in front, e.g. http://en.wikipedia.org/wiki/Main%20Page





Non User