# Practical Electronics/Binary

## Binary NumberEdit

Binary numbers are numbers in base two which consists of two digit 0 and 1 . A series of 0's and 1's can be formed to represent info

For example number from 0 to 9 can be expressed as binary numbers of four bit as shown

1 | 0001 |

2 | 0010 |

3 | 0011 |

4 | 0100 |

5 | 0101 |

6 | 0110 |

7 | 0111 |

8 | 1000 |

9 | 1001 |

## Binary CodingEdit

Since in binary number system there are only two digits 0 and 1 called a Bit . So 1-bit binary number refers to number of 1 digit either 0 or 1 . 2-bit binary number refers to number of 2 digit namely 00, 01, 10, 11 and there are 4 of such numbers which equivalent to 2^{2}. Hence, there are 2^{n} binary numbers of n bits

The process of using binary numbers to represent info is called Binary Coding

For example with 1-bit binary number 0 and 1 can be used to represent number 0 and 1 in our system .

With 2-bit binary number can be used to represent number 0 to 3 in our system as follow

- 00 represents 0
- 01 represents 1
- 10 represents 2
- 11 represents 3

With digit 0 and 1 we have three bit binary numbers of 000, 001, 010, 011, 100, 101, 110, 111 which equivalent to 0, 1, 2, 3, 4, 5, 6, 7