### What is Binary Code?

The bit, or binary digit, is the basic unit of data that can be interpreted by the digital computer. It is easily adaptable to the binary number system because there are only two possible conditions that can take on the values of 0 or 1. The meaning of successive digits in the binary system is based on the number 2 raised to successive powers. The first digit is 2°, the second is 2', the third is 2of 2, and so forth. The two numbers, 0 or 1, in successive bit positions indicate either the absence or presence of the value. Table 1.1 shows how. the binary number system can be used to represent numbers in the more familiar decimal system.

The conversion from binary to decimal systems makes use of the following type of computation, We will illustrate the conversion for the decimal number 9:

1x2°+0x2+1x2+0x2

=1+0+0+8

=9

Table 1.1: Binary and Decimal Number System Equivalence Decimal

Binary | Decimal |
---|---|

0000 | 0 |

0001 | 1 |

0010 | 2 |

0011 | 3 |

0100 | 4 |

0101 | 5 |

0110 | 6 |

A minimum of four digits is required in the binary system to represent any single-digit number in the decimal system, as indicated in Table 1.1. By using more than four binary digits, higher-value decimal numbers or other high-level data can be represented.

An alternative way to represent decimal numbers larger than nine involves separate coding of each digit, using four binary digits for each decimal digit. This coding system is known as binary-coded decimal (BCD). The binary-coded decimal system is explained in conjunction with two other common coding schemes.

### How to translate Ascii to binary?

### Uses of Binary Code?