Decimal To Binary Binary To Decimal

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Decimal To Binary Binary To Decimal as PDF for free.

More details

  • Words: 332
  • Pages: 2
Decimal to Binary 1.

Step 1

To convert from decimal to binary, you'll need to perform a series of divisions. When you divide, the remainder of the division will be the digit that is kept for the binary number. For example, let's convert 32 to binary. 2. Step 2 First, divide 32 by 2 and you'll get 16 remainder 0. The 0 is the Least Significant Bit (LSB) and is the rightmost number. 3. Step 3 Now divide 16 by 2 and you'll get 8 remainder 0. This 0 is placed to the left of the first 0. 4. Step 4 Now divide 8 by 2 and you'll get 4 remainder 0. This 0 is placed to the left of the first two 0's. 5. Step 5 Now divide 4 by 2 and you'll get 2 remainder 0. This 0 is again placed to the left of the answer so far. (Now you should have 4 0's) 6. Step 6 Now divide 2 by 2 and you'll get 1 remainder 0. Again, place this 0 to the left of the answer so far. (Now you should have 5 o's) 7. Step 7 Now, add a 1 to the left hand side of the binary number. You should have 100000. Binary to Decimal 1. Step 1 To convert from binary to decimal is a simple process. For an example, let's use the binary 101010. 2. Step 2 First, let's list the binary number vertically. List them in order from RIGHT TO LEFT 0 1 0 1 0 1 3.

Step 3

Now let's fill in the values

4.

0 1 0 1 0 1

x x x x x x

1 = 0 2 = 2 4 = 0 8 = 8 16 = 0 32 = 32

Step 4 Now just add the values together 0 + 2 + 0 + 8 + 0 + 32 = 42 And that's you're answer. 101010 in binary is 42 in decimal. Randel G. Diaz

Related Documents