100% found this document useful (1 vote)
2K views3 pages

Decimal To Binary Conversion: 1. Sum - of - Weights Method

There are two methods to convert decimal numbers to binary: 1. The sum of weights method which determines the set of binary weights whose sum equals the decimal number. 2. The repeated division by 2 method which involves repeatedly dividing the decimal number by 2 and recording the remainders to generate the binary number. For decimal fractions, the sum of weights method uses fractional binary weights and the repeated multiplication by 2 method involves repeatedly multiplying the decimal fraction by 2 and recording the carries.

Uploaded by

Anju
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
100% found this document useful (1 vote)
2K views3 pages

Decimal To Binary Conversion: 1. Sum - of - Weights Method

There are two methods to convert decimal numbers to binary: 1. The sum of weights method which determines the set of binary weights whose sum equals the decimal number. 2. The repeated division by 2 method which involves repeatedly dividing the decimal number by 2 and recording the remainders to generate the binary number. For decimal fractions, the sum of weights method uses fractional binary weights and the repeated multiplication by 2 method involves repeatedly multiplying the decimal fraction by 2 and recording the carries.

Uploaded by

Anju
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/ 3

Decimal to binary conversion

 Two methods

1) Sum of weights method

2) Repeated division by 2 method

1. Sum – of – weights method


One way to find the binary number that is equivalent to a given decimal number is to
determine the set of binary weights whose sum is equal to the decimal number. An easy way to
remember binary weights is that the lower is 1 ,which is 20 , and that by doubling any weight, so
get the next higher weight: thus , a list of seven binary weights would be 64, 32, 16, 8, 4, 2, 1.

 For example: The decimal number 12, for example , can be expressed as the sum of
binary weights as follows.

9=8 + 4

23 + 22

Placing 1s in the appropriate weight positions, 23 and 22 ,and 21 and 20 positions


determines the

binary number for decimal 12.

23 22 21 20

1 1 0 0

12 => 1 1 0 0

2. Repeated division by 2 method


A systematic method of converting whole numbers from decimal to binary is the repeated
division by 2 process. for example, to convert the decimal number 12to binary. begin by
dividing 12 by 2. then divide each resulting quotient by 2 until there is a 0 whole numbers
quotient . The remainders generated by each division from the binary number. The first
remainder to be produced is the LSB (Least significant bit). The last remainder to be
produced is the MSB (Most significant bit).
Binary remainder

12 / 2 = 6 0

6/2 = 3 0

3 /2 = 1 1

1 /2 = 0 1

Stop when the Whole MSB 1 1 0 0 LSB

number quotient is 0

Converting decimal fractions to binary


An easy way to remember fractional binary weights is that the most significant weight is
0.5 , which is 2-1 , and that by halving any weight, so get the lower weight: thus a list of four
fractional binary weights would be 0.5, 0.25, 0.125, 0.0625.

Sum –of – weights method


The sum of weights can be applied to fractional decimal number

For example:

0.625 = 0.5 + 0.125

= 2-1 + 2-3

There is a 1 in the 2-1 and 2-3 positions , a 0 in the 2-2 position

20 2-1 2-2 2-3

0. 1 0 1
2. Repeated multiplication by 2 method
Decimal fractions can be converted to binary by repeated multiplication by 2 method .
For example , to convert the decimal fraction 0.3125 to binary, begin by multiplying 0.3125 by 2
and then multiplying each resulting fractional part of the product by 2 until the fractional product
is 0 or until the desired number of decimal places is reached. The carried digits or carries,
generated by the multiplications produce the binary number. The first carry produced in MSB
and last carry is LSB.

MSB

= .0101 LSB

Carry

0.3125 * 2 = 0.625 0

0.625 * 2 = 1.25 1

0.25 * 2 = 0.50 0

0.50 * 2 = 1.00 1

You might also like