Binary and Denary
HOW TO CONVERT BETWEEN BINARY AND DENARY
Introduction
------------------------------------------------------------------------------------------
To avoid confusion while using different numeral systems, the base of each individual number may be specified by writing it as equals to the number. For example, the binary number 10011100 may be specified as "base two" by writing it as 10011100. The decimal number 156 may be written as 15610 and read as "one hundred fifty-six, base ten".
------------------------------------------------------------------------------------------
Since the binary system is the internal language of electronic computers, serious computer programmers should understand how to convert from binary to decimal. Converting in the opposite direction, from decimal to binary , is often more difficult to learn first.
How do you convert a Denary to binary
Denary to binary
Firstly
-----------------------------------------------
For example to convert 176(denary) to binary
176 >= 128 = 1 and remainder of 48
48 >= 64 = 0 remainder 48
48>= 32 = 1 remainder 16
16 >=16= 1 remainder 0
0 >= 8 = 0
0>= 4 = 0
0>= 2 = 0
0>= 1 = 0
176 denary = 10110000 binary.
secondly
----------------------------------------------------
For example binary 10101010 to denary.
1 x 1 = 1
2 x 0 =0
4 x 1 =4
8 x 0 =0
16 x 1 =16
32 x 0 =0
64 x 1 =64
128 x 0 =0
Lastly
-------------------------------------
1
4
16
64
+ equals= 85
so the denary is 85
85 denary = 10101010 binary