**Home** / **convert number to binary code** / 2.1.2.A Binary Numbers & Conversion

Activity 1.2.3 Binary Numbers and ConversionIntroductionHave you ever wondered why we use the base-ten, or decimal, number system? Of course, we have ten fingers. However, the decimal number system that works so well for us is completely incompatible with digital electronics. Digital electronics only understand two states, ON and OFF. This is why digital electronics use the base-two, or binary, number system. In order for you to be able to design digital electronics, you will need to be proficient at converting numbers between the decimal and binary number systems.In this activity you will learn how to convert numbers between the decimal and binary number systems.Equipment Calculator (preferably one with a number base conversion feature)ProcedureComplete the following decimal-to-binary number conversions. An example problem is shown below. If available, use the base conversion feature of your calculator to check your answers.Example: 19 (10) = __?__ (2)Solution:Answer: 19 (10) = 10011 (2)17 (10) 34 (10) 58 (10) 92 (10) 119 (10) 178 (10)297 (10) 413 (10) = _________ (2)= _________ (2)= _________ (2)= _________ (2)= _________ (2)= _________ (2)= _________ (2)= _________ (2) Complete the following binary-to-decimal number conversions. An example problem is shown below. If available, use the base conversion feature of your calculator to check your answers.Example: 101001 (2) = __?__ (10)Solution:Answer: 101001 (2) = 41 (10)1100 (2) 11010 (2) 111001 (2) 1010011 (2) 10000101 (2) 10011001 (2) 100100001 (2)111101010 (2) = _________ (10)= _________ (10)= _________ (10)= _________ (10)= _________ (10)= _________ (10)= _________ (10))= _________ (10) Perform the remaining decimal-to-binary conversions to complete the table shown below.Decimal NumberBinary NumberMSBLSB0 =0001 =2 =3 =4 =5 =1016 =7 =ConclusionThe decimal number system has served humans well since the beginning of mankind. Ug the caveman didn’t call it the decimal number system, but he undoubtedly used his fingers to count objects in his world. If the decimal system is so good, why do computer and other digital electronic devices use the binary number system?Now that we are using a number system other than the decimal, it is important to properly subscript our numbers (i.e., 3510, 23410, 100102, etc.). Why is this so important? Provide at least three examples where neglecting to subscript numbers could lead to confusion.Without performing the binary-to-decimal conversions, which of the following two binary numbers is the larger number :101101 (2)011010 (2)How were you able to determine this?Perform the binary-to-decimal conversions and check your answer. Were you correct?Examine the table that you completed in the procedure portion of the activity. What do you notice about the LSB (least-significant-bit)? What do you notice about the middle bit? What do you notice about the MSB (most-significant-bit)? Do you observe a pattern here? Based on your observations above, complete the table shown below.DecimalNumberBinary NumberMSBLSB0 =00001 =00012 =00103 =00114 =01005 =01016 =01107 =01118 =9 =10 =11 =12 =13 =14 =15 =Going Further – OptionalWhat number system do you think the space alien character below would use? (Hint: count the fingers). Space AlienFor some reason, most cartoon characters have traditionally been drawn with four fingers on each hand. What number system do you think these cartoon characters would use? INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET INCLUDEPICTURE "http://imgur.com/i4BfH8c.jpg" \* MERGEFORMATINET Cartoon CharactersUse your conclusions above to complete the following conversion table.DecimalNumberBinaryNumberSpace Alien NumberCartoon CharacterNumber3510110

How to convert real number to binary format? Binary equivalent of a real number 1. Convert the integer part by repeated division by 2 (or some other algorithm) 2. Convert the fraction part by repeated multiplication by 2 3. Join these two parts together to form a binary fixed point number 4. Add a zero exponent to get the number into binary floating point form 5.