## Decimal to Binary Conversion

Decimal to Binary Conversion:

To convert a decimal number to its binary equivalent follows the given steps:
Step-1: Divide the number by 2(base of binary number).
Step-2: Write the remainder in the ones place.
Step-3: Then divide the result by two.
Step-4: Write the remainder in the next place to the left.
Repeat this process until the number becomes zero.

Example 1:

Convert 256 Decimal to its Binary equivalent.

 Operation Remainder 256 ÷ 2 = 128 0 128 ÷ 2 = 64 0 64 ÷ 2 = 32 0 32 ÷ 2 = 16 0 16 ÷2 = 8 0 8 ÷ 2 = 4 0 4 ÷ 2 = 2 0 2 ÷ 2 = 1 0 1 ÷ 2 =0 1
Considering the sequence of remainders from the bottom up, the binary equivalent is 100000000₂.

Binary to Decimal Conversion:

To convert to decimal equivalent, follows the given steps:
Step-1: Multiply each digit of Binary number with 2 having power 0, 1, 2, 3 etc.
Step-2: All the products of multiplication are added to get the decimal equivalent of the number.

Example 1:

Convert 100101 to its Decimal equivalent.

100101 = 1*2⁵ + 0*2⁴ + 0*2ᵌ + 1*2² + 0*2¹ + 1*2⁰
= 32 + 0 + 0 + 4 + 0 + 1
= 37

Example 2:

Converts 11101101 to its Decimal equivalent:

11101101 = 1*2⁷ + 1*2⁶ + 1*2⁵ + 0*2⁴ + 1*2ᵌ + 1*2² + 0*2¹ + 1*2⁰
= 128 + 64 + 28 + 0 + 8 + 4 + 0 + 1
= 233
Therefore, the Decimal value is 233.

www.ittaleem.com