convert decimal to binary

© All Rights Reserved

38 views

convert decimal to binary

© All Rights Reserved

- Division Made Easy (Making Math Easy)
- Pharmaceutical Calculations
- DE
- Lesson Four
- Gr. 7 Math LM (Q1 to 4)
- Polynomial Long Division
- L1 Number Systems
- The Graphics Book for the Commodore 64
- Mathsmagic Full
- Find the Missing Number
- Basic Logic Circuits
- uChart
- Civil Eng Math 1
- imprimer
- Lesson Plan Long Divsiion
- bin_circ.pdf
- Binary and Decimal Numbers Feb0605
- Dmrc Paper
- lect.04
- 6 Polynomials

You are on page 1of 5

The decimal (base ten) numeral system has ten possible values (0,1,2,3,4,5,6,7,8, or 9) for each

place-value. In contrast, the binary (base two) numeral system has two possible values

represented as 0 or 1 for each place-value. [1] Since the binary system is the internal language of

electronic computers, serious computer programmers should understand how to convert from

decimal to binary.

Method1

Short Division by Two with Remainder

o

o

1.

1

Set up the problem. For this example, let's convert the decimal number 156 10 to binary. Write

the decimal number as the dividend inside an upside-down "long division" symbol. Write the

base of the destination system (in our case, "2" for binary) as the divisor outside the curve of the

division symbol.

This method is much easier to understand when visualized on paper, and is much

easier for beginners, as it relies only on division by two.

To avoid confusion before and after conversion, write the number of the base

system that you are working with as a subscript of each number. In this case, the decimal

number will have a subscript of 10 and the binary equivalent will have a subscript of 2.

Divide. Write the integer answer (quotient) under the long division symbol, and write the

remainder (0 or 1) to the right of the dividend. [2]

Since we are dividing by 2, when the dividend is even the binary remainder will be

0, and when the dividend is odd the binary remainder will be 1.

3

Continue to divide until you reach 0. Continue downwards, dividing each new quotient by

two and writing the remainders to the right of each dividend. Stop when the quotient is 0.

4

Write out the new, binary number. Starting with the bottom remainder, read the sequence of

remainders upwards to the top. For this example, you should have 10011100. This is the binary

equivalent of the decimal number 156. Or, written with base subscripts: 156 10 = 100111002

This method can be modified to convert from decimal to any base. The divisor is 2

because the desired destination is base 2 (binary). If the desired destination is a different base,

replace the 2 in the method with the desired base. For example, if the desired destination is base

9, replace the 2 with 9. The final result will then be in the desired base.

Method2

Descending Powers of Two and Subtraction

1.

1

Start by making a chart. List the powers of two in a "base 2 table" from right to left. Start at

20, evaluating it as "1". Increment the exponent by one for each power. Make the list up until

you've reached a number very near the decimal system number you're starting with. For this

example, let's convert the decimal number 15610 to binary.

2.

2

Look for the greatest power of 2. Choose the biggest number that will fit into the number

you are converting. 128 is the greatest power of two that will fit into 156, so write a 1 beneath

this box in your chart for the leftmost binary digit. Then, subtract 128 from your initial number.

You now have 28.

3.

3

Move to the next lower power of two. Using your new number (28), move down the chart

marking how many times each power of 2 can fit into your dividend. 64 does not go into 28, so

write a 0 beneath that box for the next binary digit to the right. Continue until you reach a

number that can go into 28.

4.

4

Subtract each successive number that can fit, and mark it with a 1. 16 can fit into 28, so

you will write a 1 beneath it's box and subtract 16 from 28. You now have 12. 8 does go into 12,

so write a 1 beneath 8's box and subtract it from 12. You now have 4 .

5.

5

Continue until you reach the end of your chart. Remember to mark a 1 beneath each

number that does go into your new number, and a 0 beneath those that don't.

6.

6

Write out the binary answer. The number will be exactly the same from left to right as the 1's

and 0's beneath your chart. You should have 10011100. This is the binary equivalent of the

decimal number 156. Or, written with base subscripts: 156 10 = 100111002.

Repetition of this method will result in memorization of the powers of two, which will

allow you to skip Step 1.

- Division Made Easy (Making Math Easy)Uploaded bySudheer Kumar Ahs
- Pharmaceutical CalculationsUploaded bySantosh Butle
- DEUploaded byNahush Bapat
- Lesson FourUploaded byjeanebeerman
- Gr. 7 Math LM (Q1 to 4)Uploaded byBilly Ray C. Castro
- Polynomial Long DivisionUploaded byToni Chinita
- L1 Number SystemsUploaded byppskc1989
- The Graphics Book for the Commodore 64Uploaded byCubemanPDX
- Mathsmagic FullUploaded byErtha Varon
- Find the Missing NumberUploaded byshan_rajesh
- Basic Logic CircuitsUploaded bypereradg
- uChartUploaded byBadalan Florentina
- Civil Eng Math 1Uploaded bysenselessapprentice
- imprimerUploaded byEzzouine Mohammed
- Lesson Plan Long DivsiionUploaded byJonathan Robinson
- bin_circ.pdfUploaded byDavid Martin
- Binary and Decimal Numbers Feb0605Uploaded byAlejandro Aguilar
- Dmrc PaperUploaded byMonikaPunia
- lect.04Uploaded byAnonymous 8erOuK4i
- 6 PolynomialsUploaded byDhanamalar Veerasiman
- cc2 pg fullUploaded byapi-262082485
- f2M6OBZ72Uploaded byjohnkl
- Digital logic and Design IntroductionUploaded byDip
- module1 overviewUploaded byapi-233732890
- task3 h00271615 nahla ali sem5Uploaded byapi-298592380
- mpdfUploaded byRomy Raya Odel
- Vintage Shop Mathematics Part 1Uploaded bygoodbye
- 1.1.2 HexadecimalUploaded byWasi Ronaldo
- par-br5-u7Uploaded byapi-289120259
- Digital Logic and Design 02Uploaded bybhargavi

- Excel Macro BasicUploaded bycykee
- SpeciesUploaded bycykee
- Tsna Toolkit (1)Uploaded byRomelyn Flores
- Effectiveness of Barangay Officials in the PerformanceUploaded bycykee
- Budget Circular No. 2016 - 8 - Pei 2016Uploaded bycykee
- Criminlogy MugUploaded bycykee
- Certificate of Good Performance - Blue SkyUploaded bycykee
- NCBTSUploaded bycykee
- SALNUploaded byEva Antonio
- BatMC BarakosUploaded bycykee
- National Hospital Week ActivitiesUploaded bycykee
- Cover PsipopUploaded bycykee
- ABD Waiver Form (1)Uploaded bycykee
- Philippine LegendsUploaded bycykee
- Pagent ProposalUploaded bycykee
- Vocabulary ReferenceUploaded bycykee
- Clinical Requirements Tally Sheet Clinic 2Uploaded bycykee
- Training and developmentUploaded bycykee
- Map and Hotel ListUploaded bycykee
- Error Downloading DTR Most of the TimeUploaded bycykee
- Calling All Batangas Medical Center AlumniUploaded bycykee
- Request for RoomUploaded bycykee
- BatMC mugUploaded bycykee
- Philippines - Order No. 2014-0037 on GHW Template - NationalUploaded bycykee
- Culture of the Philippines, ArtsUploaded bycykee
- The Asean WayUploaded byFiona Estoperez
- User Manual Acer 1.0 a AUploaded bycykee
- 4 Related Lit - ReferencesUploaded bycykee
- English NAT 6- 2014Uploaded bycykee

- guidednotesUploaded byapi-431410685
- January 2013 Igcse Timetable 22-06-2012Uploaded byRizwanur Rahman
- 17526403-Immanuel-Velikovsky.pdfUploaded bymika2k01
- Science Department Lab Report FormatUploaded byJoseph Kfoury
- Controlengg Compiled Pillai(Session 1 7)Uploaded byPrem T Raju
- transmission gate and pass transistor logic.pdfUploaded byParul Trivedi
- 02_01WAVE_MOTION__1-26_Uploaded byeamcetmaterials
- Boulanger_inelastic Seismic Response of Bridge Structures Supported on Extended Pile SharftsUploaded bysoho20021308
- Project 2Uploaded byBrian Kimiecik
- Crashing Exercises SolutionUploaded byLakshmi Annapoorna
- Kivela 2014 multilayer graphUploaded byNorbert Feron
- Adding Numbers in ExcelUploaded byFafunso Abiodun
- Electronics Study Material for MScUploaded byiswaleha
- quantum mechanicsUploaded bybeefong7680
- 11 Chapter 5Uploaded byalbertinho12
- Mfg Hmn Lbr Info ProcUploaded byiweinel
- New Trends and Challenges in Source Code OptimizationUploaded byAnjan Sarma
- A system based on Naive Bayesian for Denial-Of-Service Attack detectionUploaded byEditor IJRITCC
- 000550.pdfUploaded byAdarshpatankar
- Modeling and Control Active Suspension System for a Full Car ModelUploaded bySafak_karaosmanoglu
- Notes-Indices and Logs ExUploaded bymadhu_angel20018484
- Tutorial HEC Ras PuentesUploaded byMarshall Floweers
- DD14 ProceedingsUploaded byJaime
- sitaUploaded byqymae
- NCLBrochureUploaded byAlison Rigg
- EC203 Solid State DevicesUploaded byBonifus Parambaloth Leenus
- TUTORIAL+CHAPTER+4_SolutionUploaded byNoOna Mieyra
- 10. Questions on Assigning Object, Pointer to Objects, Passing and Returning ObjectUploaded bykibrom atsbha
- ADS ManualUploaded bysrinidhi2all
- Factor Analysis.pptUploaded bySapan Anand

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.