Main Page | Alphabetical index | English Encyclopedia

Hexadecimal

From Wikipedia, the free encyclopedia.

Numeral systems

Arabic numerals
Armenian numerals
Babylonian numerals
Chinese numerals
Greek numerals
Hebrew numerals
Indian numerals
Japanese numerals
Maya numerals
Roman numerals
Thai numerals
Numeral system
In mathematics and computer science, 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. The hexadecimal system was first introduced to the computing world in 1963 by IBM.

For example, the decimal numeral 79 whose binary representation is 01001111 can be written as 4F in hexadecimal (4 = 0100, F = 1111).

It is a useful system in computers because there is an easy mapping from four bitss to a single hex digit. A byte can be represented as two consecutive hexadecimal digits.

It was IBM that decided on the prefix of "hexa" rather than the proper Latin but more politically incorrect prefix of "sexa". The word "hexadecimal" is strange in that hexa is derived from the Greek έξι (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 risqué, and it also had an alternative meaning of "base 60". However, the word "sexagesimal" (base-60) retains the prefix.

Table of contents
1 Representing hexadecimal
2 Uses
3 Fractions
4 See also
5 External links

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
Some hexadecimal numbers are indistinguishable from a decimal number (to both humans and computers). Therefore, some convention is usually used to flag them.

In typeset text, the indication is often a subscripted suffix such as 5A316, 5A3SIXTEEN, or 5A3HEX.

In computer programming languages (which are nearly always without such typographical distinctions as subscript and superscript) a wide variety of ways of marking hexadecimal numbers have appeared. (These are also seen even in typeset text.)

Some of the more common textual representations:

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 most commonly used (or encountered) notations are the ones with a prefix "0x" or a subscript-base 16, for hex numbers. For example, both 0x2BAD and 2BAD16 represent the decimal number 11181 (or 1118110).

Uses

A common use of hexadecimal numerals is found in HTML and CSS. They use hexadecimal notation (hex triplets) to specify colours on web pages; there is just the # symbol, not a separate symbol for "hexadecimal". Twenty-four-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. For example, a shade of red that is 238,9,63 in decimal is coded as #EE093F. This syntax is borrowed from the X Window System.

In URLs, special characters can be coded hexadecimally, with a percent sign used to introduce each byte; e.g., http://en.wikipedia.org/wiki/Main%20Page

The canonical written form of numeric IPv6 addresses represents each group of 16 bits as a separate hexadecimal number, to ease reading and transcription of the 128-bit addresses.

Fractions

As with other numeral systems, the hexadecimal system can be used in forming vulgar fractions, although recurring digits are common:

1/ 0x1
=
0x1 1/ 0x5
=
0x0.3 1/ 0x9
=
0x0.1C7 1/ 0xD
=
0x0.13B
1/ 0x2
=
0x0.8 1/ 0x6
=
0x0.2A 1/ 0xA
=
0x0.19 1/ 0xE
=
0x0.1249
1/ 0x3
=
0x0.5 1/ 0x7
=
0x0.249 1/ 0xB
=
0x0.1745D 1/ 0xF
=
0x0.1
1/ 0x4
=
0x0.4 1/ 0x8
=
0x0.2 1/ 0xC
=
0x0.15 1/ 0x10
=
0x0.1

Because the radix 16 is a square (42), hexadecimal fractions have an odd period much more often than decimal ones. Recurring decimals occur when the denominator in lowest terms has a prime factor not found in the radix. In the case of hexadecimal numbers, all fractions with denominators that are not a power of two will result in a recurring decimal.

See also

External links

Calculators



Limit search to: Body and Title Deutsche Seiten Path

Websites for Hexadecimal
Showing page 1 (1 - 10 of 44 hits) Next »
... editor, edit any file in three different modes: Hexadecimal (HEX), Binary (BIN), or Octal (Text). Tool for ... editor, edit any file in three different modes: Hexadecimal (HEX), Binary (BIN), or Octal (Text). Tool for ...
Universal hexadecimal editor, supporting hard disks, floppy disks, CD-ROM ... concatenate, split, analyze, compare and convert files. Universal hexadecimal editor, supporting hard disks, floppy disks, CD-ROM ...
... format encoding, where nn is equivalent to the hexadecimal number representing the character. All spaces, punctuation, accented ... format encoding, where nn is equivalent to the hexadecimal number representing the character.
... converting between multinational characters and their decimal and hexadecimal equivalents. An online tool for converting between multinational characters and their decimal and hexadecimal equivalents.
... computing project calculating specific parts of Pi in Hexadecimal system. Project is now concluded. Distributed computing project calculating specific parts of Pi in Hexadecimal system. Project is now concluded.
Hexadecimal file editor that handles both data and resource ... a mailing list, support, download, and CVS repository. Hexadecimal file editor that handles both data and resource ...
A hexadecimal file, disk, and RAM editor and other software ... log file analysis, and secure data erasure. A hexadecimal file, disk, and RAM editor and other software ...
... onto the main window. It allows viewing in hexadecimal, decimal and ASCII notation. [Windows 95/98/ME ... onto the main window. It allows viewing in hexadecimal, decimal and ASCII notation. [Windows 95/98/ME ...
Offers a featured process viewer, multibyte hex calculator and a data interpretation tool. Offers a featured process viewer, multibyte hex calculator and a data interpretation tool.
A new generation of hex editor capable of parsing a binary file into a data structure for easy editing. Features unlimited undo/redo plus many analysis and editing tools. A new generation of hex editor capable of parsing a binary file into a data structure for easy editing. Features unlimited undo ...

Next »

Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor
Free thumbnail preview by Thumbshots.org

Search for products at amazon.com:
Search:
Keywords:
amazon.com books on 'Hexadecimal':
Search at Google.com:
Google
WebCalSky.com Encyclopedia

Suchresultate aus unserem günstigen CalSky-Shop