Difference between revisions of "Hexadecimal"
Karl Jones (Talk | contribs) (Created page with "In mathematics and computing, '''hexadecimal''' (also '''base {{num|16}}''', or '''hex''') is a positional numeral system with a...") |
Karl Jones (Talk | contribs) (→Hexadecimal color system) |
||
Line 8: | Line 8: | ||
Each hexadecimal digit represents four binary digits ([[bit]]s), and the primary use of hexadecimal notation is a human-friendly representation of [[binary code|binary-coded]] values in computing and digital electronics. One hexadecimal digit represents a [[nibble]], which is half of an [[octet (computing)|octet]] or byte (8 bits). For example, [[byte]] values can range from 0 to 255 (decimal), but may be more conveniently represented as two hexadecimal digits in the range 00 to FF. Hexadecimal is also commonly used to represent computer [[memory address]]es. | Each hexadecimal digit represents four binary digits ([[bit]]s), and the primary use of hexadecimal notation is a human-friendly representation of [[binary code|binary-coded]] values in computing and digital electronics. One hexadecimal digit represents a [[nibble]], which is half of an [[octet (computing)|octet]] or byte (8 bits). For example, [[byte]] values can range from 0 to 255 (decimal), but may be more conveniently represented as two hexadecimal digits in the range 00 to FF. Hexadecimal is also commonly used to represent computer [[memory address]]es. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Revision as of 09:24, 5 February 2016
In mathematics and computing, hexadecimal (also base Template:Num, or hex) is a positional numeral system with a radix, or base, of 16.
Description
Hexadecimal uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or alternatively a, b, c, d, e, f) to represent values ten to fifteen. Hexadecimal numerals are widely used by computer systems designers and programmers. Several different notations are used to represent hexadecimal constants in computing languages; the prefix "0x" is widespread due to its use in Unix and C (and related operating systems and languages). Alternatively, some authors denote hexadecimal values using a suffix or subscript. For example, one could write 0x2AF3 or 2AF316, depending on the choice of notation.
As an example, the hexadecimal number 2AF316 can be converted to an equivalent decimal representation. Observe that 2AF316 is equal to a sum of (200016 + A0016 + F016 + 316), by decomposing the numeral into a series of place value terms. Converting each term to decimal, one can further write: Template:Math =
Template:Math = 10995.
Each hexadecimal digit represents four binary digits (bits), and the primary use of hexadecimal notation is a human-friendly representation of binary-coded values in computing and digital electronics. One hexadecimal digit represents a nibble, which is half of an octet or byte (8 bits). For example, byte values can range from 0 to 255 (decimal), but may be more conveniently represented as two hexadecimal digits in the range 00 to FF. Hexadecimal is also commonly used to represent computer memory addresses.
See also
- Base32
- Base64
- Computing
- Hex editor
- Hex dump
- Mathematics
- Number
- Numeral system
- Positional notation
- Radix
- Web design
External links
- Hexadecimal @ Wikipedia