Bit-length


Bit-length or bit width is the number of binary digits, called bits, necessary to represent an integer as a binary number. Formally, the number of bits of zero is 1 and any other natural number is a function, bitLength, of the binary logarithm of n:
At their most fundamental level, digital computers and telecommunications devices can process only data that has been expressed in binary format. The binary format expresses data as an arbitrary length series of values with one of two choices: Yes/No, 1/0, True/False, etc., all of which can be expressed electronically as On/Off. For information technology applications, the amount of information being processed is an important design consideration. The term bit-length is technical shorthand for this measure.
For example, computer processors are often designed to process data grouped into words of a given length of bits. The bit-length of each word defines, for one thing, how many memory locations can be independently addressed by the processor. In public-key cryptography, keys are defined by their length expressed in binary digits - their bit length.