InterviewSolution
| 1. |
Decimal to binary 1234 |
|
Answer» Explanation: 1234 / 2 = 617 with 0 remainder 617 / 2 = 308 with 1 remainder 308 / 2 = 154 with 0 remainder 154 / 2 = 77 with 0 remainder 77 / 2 = 38 with 1 remainder 38 / 2 = 19 with 0 remainder 19 / 2 = 9 with 1 remainder 9 / 2 = 4 with 1 remainder 4 / 2 = 2 with 0 remainder 2 / 2 = 1 with 0 remainder 1 / 2 = 0 with 1 remainder Then, when we put the remainders together in reverse ORDER, we get the answer. The decimal NUMBER 1234 CONVERTED to binary is therefore: 10011010010
So what we did on the page was to Convert A10 to B2, where A is the decimal number 1234 and B is the binary number 10011010010. Which means that you can display decimal number 1234 to binary in mathematical terms as follows: 123410 = 100110100102 |
|