0% found this document useful (0 votes)
8 views2 pages

Binary to Decimal and Decimal to Binary

The document explains the conversion of decimal numbers to binary and vice versa. It outlines the steps for converting a decimal number (150) to binary (10010110) by dividing by 2 and collecting remainders, and for converting binary back to decimal by multiplying each binary digit by its corresponding power of 2. The process emphasizes the importance of the base 2 in binary conversions.

Uploaded by

Lakshya Siwatch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Binary to Decimal and Decimal to Binary

The document explains the conversion of decimal numbers to binary and vice versa. It outlines the steps for converting a decimal number (150) to binary (10010110) by dividing by 2 and collecting remainders, and for converting binary back to decimal by multiplying each binary digit by its corresponding power of 2. The process emphasizes the importance of the base 2 in binary conversions.

Uploaded by

Lakshya Siwatch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Conversion of DECIMAL number into BINARY

2 150 0
2 75 1
2 37 1 (150)10
2 18 0
2 9 1 (10010110)2
2 4 0
2 2 0
1
Steps:
Divide the given number by 2 and write the remainder on the
right hand side.
Repeat the process until you get 1 as the dividend.
Collect all the remainders from bottom to top.

Please Note:
We will divide the number every time by 2 because, the base
of Binary number system is 2.
Conversion of BINARY number into DECIMAL

7 6 5 4 3 2 1 0

1 0 0 1 0 1 1 0

1x27 + 0x26 + 0x25 + 1x24 + 0x23 + 1x22 + 1x21 + 0x20


128 + 0 + 0 + 16 + 0 + 4 + 2 + 0
(150)10

Steps:
Write all the digits of the given binary number.
Put powers of 2, starting from 0 over each digits from right to
left.
Multiply each digit by the corresponding power of 2.
Add up all the numbers.
The final result is the decimal equivalent of the given binary
number.

You might also like