CBSE Class 11 | Number System 2


Decimal to Binary conversion

How to convert decimal to binary

Conversion steps:

1. Divide the number by 2.
2. Get the integer quotient for the next iteration.
3. Get the remainder for the binary digit.
4. Repeat the steps until the quotient is equal to 0.

Example:1

Convert decimal (25) to binary:

Convert (25)10 to (n)2

Division By 2 Quotient Remainder
25/2 12 1
12/2 6 0
6/2 3 0
3/2 1 1
1/2 0 1

So , we have

(25)10 = (11001)2

Example:2

Convert decimal (13) to binary:

Convert (13)10 to (n)2

Division
by 2
Quotient Remainder
13/2 6 1
6/2 3 0
3/2 1 1
1/2 0 1

So , we have

(13)10 = (1101)2

Example:3

Convert decimal (19) to binary:

Convert (19)10 to (n)2

Division By 2 Quotient Remainder
19/2 9 1
9/2 4 1
4/2 2 0
2/2 1 0
1/2 0 1

So , we have

(19)10 = (10011)2