What are the required steps to convert base 10 decimal system
number 1 257 434 228 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;
- 1 257 434 228 ÷ 2 = 628 717 114 + 0;
- 628 717 114 ÷ 2 = 314 358 557 + 0;
- 314 358 557 ÷ 2 = 157 179 278 + 1;
- 157 179 278 ÷ 2 = 78 589 639 + 0;
- 78 589 639 ÷ 2 = 39 294 819 + 1;
- 39 294 819 ÷ 2 = 19 647 409 + 1;
- 19 647 409 ÷ 2 = 9 823 704 + 1;
- 9 823 704 ÷ 2 = 4 911 852 + 0;
- 4 911 852 ÷ 2 = 2 455 926 + 0;
- 2 455 926 ÷ 2 = 1 227 963 + 0;
- 1 227 963 ÷ 2 = 613 981 + 1;
- 613 981 ÷ 2 = 306 990 + 1;
- 306 990 ÷ 2 = 153 495 + 0;
- 153 495 ÷ 2 = 76 747 + 1;
- 76 747 ÷ 2 = 38 373 + 1;
- 38 373 ÷ 2 = 19 186 + 1;
- 19 186 ÷ 2 = 9 593 + 0;
- 9 593 ÷ 2 = 4 796 + 1;
- 4 796 ÷ 2 = 2 398 + 0;
- 2 398 ÷ 2 = 1 199 + 0;
- 1 199 ÷ 2 = 599 + 1;
- 599 ÷ 2 = 299 + 1;
- 299 ÷ 2 = 149 + 1;
- 149 ÷ 2 = 74 + 1;
- 74 ÷ 2 = 37 + 0;
- 37 ÷ 2 = 18 + 1;
- 18 ÷ 2 = 9 + 0;
- 9 ÷ 2 = 4 + 1;
- 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.
1 257 434 228(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 257 434 228 (base 10) = 100 1010 1111 0010 1110 1100 0111 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.