Here are step-by-step instructions on how to convert the decimal number 5671 to a binary number.
Step A) Determine if 5671 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 5671 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 5671 decimal to binary using the steps above.
5671 → 1
(5671 - 1)/2 = 2835 → 1
(2835 - 1)/2 = 1417 → 1
(1417 - 1)/2 = 708 → 0
(708 - 0)/2 = 354 → 0
(354 - 0)/2 = 177 → 1
(177 - 1)/2 = 88 → 0
(88 - 0)/2 = 44 → 0
(44 - 0)/2 = 22 → 0
(22 - 0)/2 = 11 → 1
(11 - 1)/2 = 5 → 1
(5 - 1)/2 = 2 → 0
(2 - 0)/2 = 1 → 1
Then you put the binary number above in reverse order and you get the answer:
1011000100111
|
|