This article needs more citations. (April 2015) |

In computing, a nibble, also spelled nybble to match byte, is a unit of information consisting of four bits, equivalent to one half of a byte or octet (data units of eight-bit length). The unit is alternatively called a nybl, half-byte or tetrad. In computer networking and telecommunications, the unit is also sometimes called a semi-octet, quadbit, or quartet.
A nibble uses four digits in binary positional notation (base 2) to encode one of sixteen () possible values, representing the same amount of information stored by two digits in the quaternary numeral system (base 4) or just a single hexadecimal ("hex") digit (base 16). That functional equivalence allows nibbles to typically be represented by a single hex digit, and likewise, byte values by a pair of hex digits.
Four-bit computers use nibble-sized data for storage and operations, in the form of the word unit. Such computers were used in early microprocessors, pocket calculators and pocket computers, and continue to be used in some microcontrollers. In this context, 4-bit groups were sometimes also called characters or digits rather than nibbles.
The term nibble originates from its representing half a byte, with byte a homophone of the English word bite. David B. Benson may have coined its use to describe four-bit values as a joke while working as a professor at Washington State University in 1958.
In 1977, an early use of the spelling nybble for the term was recorded within the consumer-banking technology group at Citibank. It created a pre-ISO 8583 standard for transactional messages between ATMs and Citibank's data centers that used the basic data unit nabble.[citation needed]
In the early 1980s, the alternative spelling nybble reflected the spelling of byte, as noted in editorials of Kilobaud Microcomputing and Byte.[citation needed]
Historically, nybble was used in several cases for data units longer than four bits. On the Apple II, much of the disk drive control and group coded recording was implemented in software, and writing data to a disk was done by converting 256-byte pages into sets of 5-bit (later, 6-bit) nibbles whereas loading disk data required the reverse. Moreover, 1982 documentation for the Integrated Woz Machine refers consistently to an "8 bit nibble". The term byte once had the same ambiguity and meant a set of bits but not necessarily 8, hence the distinction of bytes and octets or of nibbles and quartets (or quadbits). Today, the terms byte and nibble almost always refer to 8-bit and 4-bit collections, respectively, and are very rarely used to express any other sizes.[citation needed]
Nibble is used to describe the amount of memory used to store a digit of a number stored in packed decimal format (BCD) within an IBM mainframe. This technique is used to make computations faster and debugging easier. An 8-bit byte is split in half, and each nibble is used to store one decimal digit. The last (rightmost) nibble of the variable is reserved for the sign.[citation needed] Thus, a variable that can store up to nine digits would be packed into 5 bytes. Ease of debugging resulted from the numbers' being readable in a hex dump where two hex numbers are used to represent the value of a byte, as , or . For example, a five-byte BCD value of 31 41 59 26 5C represents a decimal value of +314,159,265.
Packed nibbles can also describe binary numbers. When converting from bytes to nibbles,the two halves are often referred to as the low (right) and high (left) nibbles rather than the more formal labels of least- and most-significant bits. For example, in the binary representation for the natural number 97, , the high nibble is () and the low nibble is (). That same number expressed in hexadecimal is simply , with each nibble now reduced to a single digit that nonetheless represents the same value ().
A nibble-sized value can be represented in different numeric bases:
PRE.NYBBLE and POST.NYBBLE convert between memory format and disk format. […] PRE.NYBBLE converts the 256-byte buffer to 410 bytes of 5-bits each, then […] POST.NYBBLE converts the 410 5-bit values back to 256 8-bit bytes.
nybble /nib´l/ (alt. nibble) [from v. ´nibble´ by analogy with ´bite´ ⇒ ´byte´] n. Four bits; one hex digit; a half-byte. […]
The characteristic eight bit field is sometimes referred to as a byte, a four-bit field can be referred to as a nibble.
An eight-bit binary word is often called a byte, and a four-bit binary word is called a nibble.
The terms "bits," "nibbles," "bytes," "halfwords," "words," and "doublewords" refer to lengths of 1, 4, 8, 16, 32, and 64 bits, respectively.
{{cite book}}: CS1 maint: multiple names: authors list (link)Each of these letters corresponds to one of the integers from zero to fifteen, therefore requiring 4 bits (one "tetrade") in binary representation.
Es gibt 10 verschiedene Dezimalziffern. Mit 4 Dualstellen lassen sich 24 = 16 Kombinationen bilden, also miissen 4 Dualstellen geniigen, um eine Dezimale zu verkörpern. Eine solche Vierergruppe wird als Tetrade bezeichnet.[There are 10 different decimal digits. With 4 binary digits, 24 = 16 possible combinations can be formed; thus, 4 binary digits must suffice to represent a decimal digit. Such a group of four is called a tetrad.]
[…] the X.25 packet format is octet-oriented (it is an integer multiple of 8-tuples of bits), though in some cases only semi-octets (4 bits) provide comprehensive information.
quadbit 1. A set of four bits.
A data symbol represents one quartet (4 bits) of binary data; 16 symbols are thus required to convey data.
Comme un caractère de la chaîne LM représente un quartet et que l'on veut créer une chaîne comme résultat on va coder 2 quartets par 2 quartets (1 caractêre ASCll=2 quartets=1 octet).[Since each character in the LM string represents a quartet, and we want to create a string as the result, we will encode the quartets in pairs (1 ASCII character = 2 quartets = 1 byte).]
As a rule, the term hexadecimal is abbreviated to hex. Since there are 16 possible combinations of 4 bits (2×2×2×2), hexadecimal notation allows four bits of a binary number to be represented by one hex digit. […] For this reason, binary is almost never used. Instead, we use hex as a shortcut to eliminate the necessity of reading, writing and remembering long strings of bits.
Character – A group of 4 contiguous bits of data.(N.B. This Intel 4004 manual uses the term character referring to 4-bit rather than 8-bit data entities. By 1974, Intel had already switched to use the more common term nibble for 4-bit entities in their documentation for the succeeding 4040 processor.)
[…] As David Benson, a Washington State University professor, remembered it, he had jokingly made a remark in 1958 about "half a byte" (i.e., "half a bite") being a nibble, and the name stuck.
This new method involved a "5 and 3" split of the data bits, versus the "4 and 4" mentioned earlier. Each byte written to the disk contains five valid bits rather than four. This requires 410 "disk" bytes to store a 256 byte sector.
{{cite book}}: CS1 maint: deprecated archival service (link)Memorize the decimal values for the high nibble (they're just the multiples of 16). The low nibble is trivial. Every number between 0 and 255 is the sum of one of the high nibble values and one of the low nibble values.