Binary Languange
Computer works in binary languange. Binary is a base 2 number system invented by Gottfried Leibniz where numeric values are represented by different combinations of 0 and 1, also known as OFF or ON.
.Why computer use binary? Binary is still the primary language for computers for the following reasons :
- It is a simple design.
- Binary's 0 and 1 method is quick to detect an electrical signal's off or on state.
- The positive and negative poles of magnetic media are quickly translated into binary.
- Binary is the most efficient way to control logic circuits.
How to Read Binary Languange
The following chart illustrates the binary number 01101000. Each column represents the number two raised to an exponent, with that exponent's value increasing by one as you move through each of the eight positions. In this example, we get the total value by reading the chart from right to left and adding each column's value to that of the previous column: (8+32+64) = 104. As you can see, we do not count the bits with a 0 because they're "turned off."
Exponent: | 2^7 | 2^6 | 2^5 | 2^4 | 2^3 | 2^2 | 2^1 | 2^0 |
---|---|---|---|---|---|---|---|---|
Value: | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
ON/OFF: | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 |