What are the required steps to convert base 10 decimal system
number 18 446 744 138 to base 2 unsigned binary equivalent?
- A number written in base ten, or a decimal system number, is a number written using the digits 0 through 9. A number written in base two, or a binary system number, is a number written using only the digits 0 and 1.
1. Divide the number repeatedly by 2:
Keep track of each remainder.
Stop when you get a quotient that is equal to zero.
- division = quotient + remainder;
- 18 446 744 138 ÷ 2 = 9 223 372 069 + 0;
- 9 223 372 069 ÷ 2 = 4 611 686 034 + 1;
- 4 611 686 034 ÷ 2 = 2 305 843 017 + 0;
- 2 305 843 017 ÷ 2 = 1 152 921 508 + 1;
- 1 152 921 508 ÷ 2 = 576 460 754 + 0;
- 576 460 754 ÷ 2 = 288 230 377 + 0;
- 288 230 377 ÷ 2 = 144 115 188 + 1;
- 144 115 188 ÷ 2 = 72 057 594 + 0;
- 72 057 594 ÷ 2 = 36 028 797 + 0;
- 36 028 797 ÷ 2 = 18 014 398 + 1;
- 18 014 398 ÷ 2 = 9 007 199 + 0;
- 9 007 199 ÷ 2 = 4 503 599 + 1;
- 4 503 599 ÷ 2 = 2 251 799 + 1;
- 2 251 799 ÷ 2 = 1 125 899 + 1;
- 1 125 899 ÷ 2 = 562 949 + 1;
- 562 949 ÷ 2 = 281 474 + 1;
- 281 474 ÷ 2 = 140 737 + 0;
- 140 737 ÷ 2 = 70 368 + 1;
- 70 368 ÷ 2 = 35 184 + 0;
- 35 184 ÷ 2 = 17 592 + 0;
- 17 592 ÷ 2 = 8 796 + 0;
- 8 796 ÷ 2 = 4 398 + 0;
- 4 398 ÷ 2 = 2 199 + 0;
- 2 199 ÷ 2 = 1 099 + 1;
- 1 099 ÷ 2 = 549 + 1;
- 549 ÷ 2 = 274 + 1;
- 274 ÷ 2 = 137 + 0;
- 137 ÷ 2 = 68 + 1;
- 68 ÷ 2 = 34 + 0;
- 34 ÷ 2 = 17 + 0;
- 17 ÷ 2 = 8 + 1;
- 8 ÷ 2 = 4 + 0;
- 4 ÷ 2 = 2 + 0;
- 2 ÷ 2 = 1 + 0;
- 1 ÷ 2 = 0 + 1;
2. Construct the base 2 representation of the positive number:
Take all the remainders starting from the bottom of the list constructed above.
18 446 744 138(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
18 446 744 138 (base 10) = 100 0100 1011 1000 0010 1111 1010 0100 1010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.