What are the required steps to convert base 10 decimal system
number 2 452 458 788 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;
- 2 452 458 788 ÷ 2 = 1 226 229 394 + 0;
- 1 226 229 394 ÷ 2 = 613 114 697 + 0;
- 613 114 697 ÷ 2 = 306 557 348 + 1;
- 306 557 348 ÷ 2 = 153 278 674 + 0;
- 153 278 674 ÷ 2 = 76 639 337 + 0;
- 76 639 337 ÷ 2 = 38 319 668 + 1;
- 38 319 668 ÷ 2 = 19 159 834 + 0;
- 19 159 834 ÷ 2 = 9 579 917 + 0;
- 9 579 917 ÷ 2 = 4 789 958 + 1;
- 4 789 958 ÷ 2 = 2 394 979 + 0;
- 2 394 979 ÷ 2 = 1 197 489 + 1;
- 1 197 489 ÷ 2 = 598 744 + 1;
- 598 744 ÷ 2 = 299 372 + 0;
- 299 372 ÷ 2 = 149 686 + 0;
- 149 686 ÷ 2 = 74 843 + 0;
- 74 843 ÷ 2 = 37 421 + 1;
- 37 421 ÷ 2 = 18 710 + 1;
- 18 710 ÷ 2 = 9 355 + 0;
- 9 355 ÷ 2 = 4 677 + 1;
- 4 677 ÷ 2 = 2 338 + 1;
- 2 338 ÷ 2 = 1 169 + 0;
- 1 169 ÷ 2 = 584 + 1;
- 584 ÷ 2 = 292 + 0;
- 292 ÷ 2 = 146 + 0;
- 146 ÷ 2 = 73 + 0;
- 73 ÷ 2 = 36 + 1;
- 36 ÷ 2 = 18 + 0;
- 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.
2 452 458 788(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
2 452 458 788 (base 10) = 1001 0010 0010 1101 1000 1101 0010 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.