What are the required steps to convert base 10 decimal system
number 4 273 864 786 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;
- 4 273 864 786 ÷ 2 = 2 136 932 393 + 0;
- 2 136 932 393 ÷ 2 = 1 068 466 196 + 1;
- 1 068 466 196 ÷ 2 = 534 233 098 + 0;
- 534 233 098 ÷ 2 = 267 116 549 + 0;
- 267 116 549 ÷ 2 = 133 558 274 + 1;
- 133 558 274 ÷ 2 = 66 779 137 + 0;
- 66 779 137 ÷ 2 = 33 389 568 + 1;
- 33 389 568 ÷ 2 = 16 694 784 + 0;
- 16 694 784 ÷ 2 = 8 347 392 + 0;
- 8 347 392 ÷ 2 = 4 173 696 + 0;
- 4 173 696 ÷ 2 = 2 086 848 + 0;
- 2 086 848 ÷ 2 = 1 043 424 + 0;
- 1 043 424 ÷ 2 = 521 712 + 0;
- 521 712 ÷ 2 = 260 856 + 0;
- 260 856 ÷ 2 = 130 428 + 0;
- 130 428 ÷ 2 = 65 214 + 0;
- 65 214 ÷ 2 = 32 607 + 0;
- 32 607 ÷ 2 = 16 303 + 1;
- 16 303 ÷ 2 = 8 151 + 1;
- 8 151 ÷ 2 = 4 075 + 1;
- 4 075 ÷ 2 = 2 037 + 1;
- 2 037 ÷ 2 = 1 018 + 1;
- 1 018 ÷ 2 = 509 + 0;
- 509 ÷ 2 = 254 + 1;
- 254 ÷ 2 = 127 + 0;
- 127 ÷ 2 = 63 + 1;
- 63 ÷ 2 = 31 + 1;
- 31 ÷ 2 = 15 + 1;
- 15 ÷ 2 = 7 + 1;
- 7 ÷ 2 = 3 + 1;
- 3 ÷ 2 = 1 + 1;
- 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.
4 273 864 786(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
4 273 864 786 (base 10) = 1111 1110 1011 1110 0000 0000 0101 0010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.