# Binary

## Introduction

It is a base-2 number system. In mathematics and digital electronics, a binary number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically, “0”and “1”.

Computers operate in binary, meaning they store data and perform calculations using only zeros and ones. A single binary digit can only represent True (1) or False (0) in boolean logic.

It is used to write data like as the computer processor instructions used every day. In the digital trends, all the computer using use this code in the form of digital ones and zeroes inside the Computer Processor Unit (CPU) and RAM (Random Access Memory).

A bit is a single binary digit that can represent 0 or 1. So a bit is one digit in the binary system and a byte is 8 digits in the binary system combined together to represent an unsigned number that can take on a value between 0 and 255 in the decimal system.

## How Does it Work?

When you add one to one, you move the 1 one spot to the left into the twos place and put a 0 in the ones place: 10.  … Each of its digit is known as a bit.

In transistor an “0” represents no flow of electricity, and “1” represents electricity being allowed to flow.

Generally, it represent “0” and “1” represent OFF or ON, respectively.

Binary numbers use the same rules as decimal – the value of any digit always depends on its position in the whole number.

Because it uses base two as opposed to the decimal base ten, the numbers get larger much more quickly, but they still obey the same principles.

In this case, the number ten is represented by 10 (no 1s, one x 10) in decimal, and 1010 (no 1s, one x 2, no 4s, one x 8).

## How to Read Binary Numbers

Let’s take a binary number, here we choose an 8-digit number.

## 1011001

So we calculate it from right to left because its base 2 system.

The first digit in this example is representing that the value 2 to the power of 0 is ON

The second digit (2 to the power of 1) is OFF so the value is 0.

So finally we got the exact value.

Let’s take another one example.

## 11111111

Reading right to left we have 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 = 255. (Counting on a computer normally starts at “0” instead of “1.”)

## Representing Information with ASCII

The ASCII is plays important role to how a computer can use the binary number system to work with decimal numbers. Always computer stored the text information.

ASCII contains of 128 text or special characters that each have an associated decimal value. If any application had a ASCII capable, it can be can read or store text information to and from computer memory.

Here mentioned some few samples of binary numbers converted to ASCII text include:

• 11011 = 27, which is the ESC key in ASCII
• 110000 = 48, which is 0 in ASCII
• 1000001 = 65, which is A in ASCII

## How its use in computer?

It is the primary language for computers and Binary existed before computers. In below mentioned some reason for why the computer use the binary.

1. It is a simple and elegant design.
2. Binary’s 0 and 1 method is quick to detect an electrical signal’s off or on state. Binary is the most
3. efficient way to control logic circuits

## Binary Code and Storing Information

We should accept one important point. People do more work or activities by help of binary, such as they can view the website, write and read the document and play the videos games.