Binary and Denary

HOW TO CONVERT BETWEEN BINARY AND DENARY

Introduction


Computer can only understand binary. The binary (base two) has two possible numeral system values, represented as 0 or 1 for each place-value. In contrast, the decimal (base ten) numeral system has ten possible values (0,1,2,3,4,5,6,7,8, or 9) for each place-value.

------------------------------------------------------------------------------------------

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

When covert a Denary to binary , firstly you will to get a number below a 255 (as this is the limit for 8 bits ) for examples 67

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