TOPICS
Search

Hexadecimal


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 for decimal numbers from 1 to 30.

1111B2115
2212C2216
3313D2317
4414E2418
5515F2519
661610261A
771711271B
881812281C
991913291D
10A2014301E

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.


See also

Base, Binary, Decimal, Digit, Katadrome, Metadrome, Nialpdrome, Nibble, Octal, Plaindrome, Quaternary, Ternary, Vigesimal

Explore with Wolfram|Alpha

References

Gardner, M. The Sixth Book of Mathematical Games from Scientific American. Chicago, IL: University of Chicago Press, p. 105, 1984.

Referenced on Wolfram|Alpha

Hexadecimal

Cite this as:

Weisstein, Eric W. "Hexadecimal." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/Hexadecimal.html

Subject classifications