This document provides two methods for converting decimal numbers to binary:
1. Subtraction method: Subtract powers of two starting from the highest place value until the number is subtracted to zero, placing a 1 in the binary digit for each power of two subtracted.
2. Division method: Divide the decimal number by 2 repeatedly, placing a 1 in the binary digit for any remainders and 0 for no remainders, working from right to left.
Both methods are demonstrated by converting sample decimal numbers 189, 75, and 242 to binary. Step-by-step workings are shown using charts listing the place values for each binary digit.
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
76 views
Decimal Binary
This document provides two methods for converting decimal numbers to binary:
1. Subtraction method: Subtract powers of two starting from the highest place value until the number is subtracted to zero, placing a 1 in the binary digit for each power of two subtracted.
2. Division method: Divide the decimal number by 2 repeatedly, placing a 1 in the binary digit for any remainders and 0 for no remainders, working from right to left.
Both methods are demonstrated by converting sample decimal numbers 189, 75, and 242 to binary. Step-by-step workings are shown using charts listing the place values for each binary digit.
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8
Decimal
to Binary Conversion
Press any key to continue…
Method 1 - subtraction Use the chart to record the subtraction 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1
1 0 1 1 1 1 0 1 = 189
To convert the decimal number 189 to binary you
must subtract the highest number possible first. Place a 1 in the chart for any number you subtract. 189 Cannot 61 29 13 5 Cannot 1 subtract subtract -128 - 32 - 16 - 8 -4 -1 a 64 a2 61 29 13 5 1 0
Press any key to continue…
Try another number using Method 1 - subtraction Use the chart to record the subtraction 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1
0 1 0 0 1 0 1 1 = 75
To convert the decimal number 75 to binary you
must subtract the highest number possible first. Place a 1 in the chart for any number you subtract. Cannot 75 Cannot Cannot 11 Cannot 3 1 subtract subtract subtract subtract - 64 - 8 -2 -1 a 128 a 32 a 16 a4 11 3 1 0
Press any key to continue…
On a piece of paper convert the number 242 using Method 1 – subtraction. Press any key when you have an answer. 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1
1 1 1 1 0 0 1 0 = 242
To convert the decimal number 242 to binary you
must subtract the highest number possible first. Place a 1 in the chart for any number you subtract. 242 114 50 18 Cannot Cannot 2 subtract subtract - 128 - 64 - 32 - 16 an 8 a4 -2 114 50 18 2 0
Press any key to continue…
Method 2 - division Use the chart to record the division 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1 1 0 1 1 1 1 0 1 = 189 189 / 2 = 94 r 1 To convert the decimal number 189 to binary 94 / 2 = 47 r 0 you must divide the 47 / 2 = 23 r 1 number by 2. Starting 23 / 2 = 11 r 1 from the right, place a 11 / 2 = 5 r 1 1 if there is a 5/2= 2r1 remainder or a 0 if no 2/2= 1r0 remainder. 1 / 2 = cannot divide further - carry the 1 Press any key to continue… Method 2 - division Use the chart to record the division 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1 0 1 0 0 1 0 1 1 = 75 75 / 2 = 37 r 1 To convert the decimal number 75 to binary 37 / 2 = 18 r 1 you must divide the 18 / 2 = 9 r 0 number by 2. Starting 9/2= 4r1 from the right, place a 4/2= 2r0 1 if there is a 2/2= 1r0 remainder or a 0 if no 1 / 2 = cannot divide remainder. further - carry the 1 Fill in to make 8 bits with 0 Press any key to continue… Method 2 - division Use the chart to record the division 27 26 25 24 23 22 21 20 128 64 32 16 8 4 2 1 1 1 1 1 0 0 1 0 = 242 242 / 2 = 121 r 0 To convert the decimal number 242 to binary 121 / 2 = 60 r 1 you must divide the 60 / 2 = 30 r 0 number by 2. Starting 30 / 2 = 15 r 0 from the right, place a 15 / 2 = 7 r 1 1 if there is a 7/2= 3r1 remainder or a 0 if no 3/2= 1r1 remainder. 1 / 2 = cannot divide further - carry the 1 Press any key to continue… The End