Binary code (computing)

Binary code (computing)

[
ASCII binary.]

Binary code is the system of representing text or computer processor instructions by the use of a two digit number system. This system is composed of only the number zero, representing the off state, and the number one, representing on state, combined in groups of 8. These groups of 8 bits can represent up to 256 different values and can correspond to a variety of different symbols, letters or instructions. An example of this is the uppercase A, which in ASCII binary is 01000001.

In computing and telecommunication, it is used for any of a variety of methods of coding data, such as sequences of characters, into sequences of groups of bits, including fixed-width words or bytes, and variable-length codes such as Huffman code and arithmetic coding.

In a fixed-width binary code, each letter, digit, or other character, is represented by a sequence of bits of the same length, usually indicated in code tables by the octal, decimal or hexadecimal notation for the value of that sequence of bits interpreted as a binary number.

For representing texts in the Latin alphabet often a fixed width 8-bit code is used. The ISO 8859-1 character code uses 8 bits for each character e.g. "R" is "01010010" and "b" is "01100010"; the block of 8 bits is called a byte; it extended the earlier ASCII code, based on the version of the Latin alphabet used for English, which uses 7 bits to represent 128 characters (0–127).

The Unicode standard defines several variable-width encodings and the fixed-width 32-bit (4-byte) UTF-32 code, potentially having room for billions of characters, but using barely more than 1 million combination as definable code points.

A binary sequence can be translated into a decimal number using the following formula, with y being the 1/0:

(2^0 imes y) + (2^1 imes y) + (2^2 imes y) dots

Repeat the bracket and increase the exponent for every 1/0 in the sequence. It is important to remember that the formula is used on the sequence from right to left.

ee also

* List of binary codes
* Unicode
* hexadecimal
* Octal


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • binary code — binary codes N VAR Binary code is a computer code that uses the binary number system. [COMPUTING] The instructions are translated into binary code, a form that computers can easily handle …   English dictionary

  • Binary code — The word Wikipedia represented in ASCII binary. A binary code is a way of representing text or computer processor instructions by the use of the binary number system s two binary digits 0 and 1. This is accomplished by assigning a bit string to… …   Wikipedia

  • binary — adj. & n. adj. 1 a dual. b of or involving pairs. 2 of the arithmetical system using 2 as a base. n. (pl. ies) 1 something having two parts. 2 a binary number. 3 a binary star. Phrases and idioms: binary code Computing a coding system using the… …   Useful english dictionary

  • binary — bi‧na‧ry [ˈbaɪnəri] adjective COMPUTING relating to the system of numbers used in computers, that uses only the numbers 0 and 1: • All information inside the computer is stored in binary code. • the binary system * * * binary UK US /ˈbaɪnəri/… …   Financial and business terms

  • code — [kəʊd ǁ koʊd] noun 1. [countable] LAW a complete set of written rules or laws: • Each state in the US has a different criminal and civil code. ˈbuilding code [countable] LAW a set of rules that states what features a new building, bridge etc… …   Financial and business terms

  • binary-coded decimal — noun (computing) A decimal number written in binary code such that each number is represented by a unique sequence of four bits (abbrev BCD) • • • Main Entry: ↑binary …   Useful english dictionary

  • Binary-compatibility — In computing, a computer that can run the same binary code intended to be run on another computer is said to be binary compatible. This is different from Source code compatibility where it s required to compile the source code.Binary… …   Wikipedia

  • binary-compatible — adjective (computing) being able to run the same binary code intended to be run on another computer …   Wiktionary

  • Binary scaling — is a computer programming technique used mainly by embedded C, DSP and assembler programmers to perform a pseudo floating point using integer arithmetic.It is both faster and more accurate than directly using floating point instructions, however… …   Wikipedia

  • Code injection — is the exploitation of a computer bug that is caused by processing invalid data. Code injection can be used by an attacker to introduce (or inject ) code into a computer program to change the course of execution. The results of a code injection… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”