IT Questions and Answers :)

Friday, February 22, 2019

Convert 101 from decimal to binary.

Convert 101 from decimal to binary.

  • 1011001
  • 1010101
  • 1110111
  • 1100101 

Convert 101 from decimal to binary.

EXPLANATION

From right to left, each column represents double the last column starting with the number 1. So the answer: 1100101 represents from right to left: (1x1) + (0x2) + (1x4) + (0x8) + (0x16) + (1x32) + (1x64) = 101.
Here are step-by-step instructions on how to convert the decimal number 101 to a binary number.

Step A) Determine if 101 is an even or odd number. If it is even, you assign a 0 and if it is odd you assign a 1.

Step B) Deduct the 1 or 0 in step A from 101 and then divide it by 2. Then, you see if that number is even or odd and then assign a 0 or 1 like step A.

Step C) Repeat step B with the new number until the number you get is 1.

Step D) Put all the 0s and 1s you assigned in reverse order to get the answer.

To illustrate better, we detailed below how we converted 101 decimal to binary using the steps above.

101 → 1

(101 - 1)/2 = 50 → 0

(50 - 0)/2 = 25 → 1

(25 - 1)/2 = 12 → 0

(12 - 0)/2 = 6 → 0

(6 - 0)/2 = 3 → 1

(3 - 1)/2 = 1 → 1

Then you put the binary number above in reverse order and you get the answer:

1100101
Share:

0 comments:

Post a Comment

Popular Posts