Binary numbers are the integral part of digital logic.

The rules of binary numbers translation to decimal numbers, that we used to operate with, are very similar to the decimal rules.

Binary logic represent two digits, called bits, and the values are 1 and 0. Binary numbers with the structure like ana(n1)a1a0 are contracted by bonding the bit values with the following expression: (1)(an)(i=0)(n1) ai2i. Here an can be 1 or 0.

Example: 11001. Here a0=1, a1=0, a2=0, a3=1, a4=1.

Using formula above 11001=(1)1(20*1+21*0+22*0+23*1)=9

Tags: