The binary number system, radix two, it uses only two characters (1, 0). For many devices such as programmable controllers and digital computers, the binary system is the most useful. It was adopted for convenience
1×8 + 1×4 + 0×2 + 1 + 1×(1/2) + 0×(1/4) + 1×(1/8)
(=13.625 in Decimal)
How to Show that a Number is Binary (=13.625 in Decimal)
The binary number follows with a little 2: 101012 by this way people won't think it is the decimal number "10101" (ten thousand, one hundred and one).
Conversion binary numbers into decimal
Let us take an example
Convert 11012 into decimal
1*20=1*1=1
+ 0*21=0*2=0
+ 1*22=1*4=4
+ 1*23=1*8=8 ================ 13
So (1101)2=(13)10
Conversion decimal numbers into binary
Let us take an example:
Convert (13)10 into binary
13/2= 6 +++ 1---------------------- (carry)
6/2= 3 +++ 0 ---------------------- (carry)
3/2= 1 +++ 1----------------------- (carry)
1/2=0 +++ 1----------------------- (carry)
So (13)10 =11012