
The prefix 0x is used in C and related programming languages, which would denote this value as 0x7DC0. In programming, a number of notations are used to denote hexadecimal numbers, usually involving a prefix or suffix. For example, the decimal value 32,192 would be expressed in hexadecimal as 7DC0 16. In mathematics, a subscript is typically used to specify the base. For example, a single byte can have values ranging from 00000000 to 11111111 in binary form, which can be conveniently represented as 00 to FF in hexadecimal. Each hexadecimal digit represents four bits (binary digits), also known as a nibble (or nybble), which is 1/2 of a byte. Hexadecimal numerals are widely used by computer system designers and programmers because they provide a human-friendly representation of binary-coded values. Unlike the common way of representing numbers using 10 symbols, hexadecimal uses 16 distinct symbols, most often the symbols "0"–"9" to represent values 0 to 9, and "A"–"F" (or alternatively "a"–"f") to represent values from 10 to 15. In mathematics and computing, the hexadecimal (also base 16 or hex) numeral system is a positional numeral system that represents numbers using a radix (base) of 16. Signed-digit representation ( balanced ternary).
