What are the required steps to convert base 10 decimal system
number 255 255 127 507 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;
- 255 255 127 507 ÷ 2 = 127 627 563 753 + 1;
- 127 627 563 753 ÷ 2 = 63 813 781 876 + 1;
- 63 813 781 876 ÷ 2 = 31 906 890 938 + 0;
- 31 906 890 938 ÷ 2 = 15 953 445 469 + 0;
- 15 953 445 469 ÷ 2 = 7 976 722 734 + 1;
- 7 976 722 734 ÷ 2 = 3 988 361 367 + 0;
- 3 988 361 367 ÷ 2 = 1 994 180 683 + 1;
- 1 994 180 683 ÷ 2 = 997 090 341 + 1;
- 997 090 341 ÷ 2 = 498 545 170 + 1;
- 498 545 170 ÷ 2 = 249 272 585 + 0;
- 249 272 585 ÷ 2 = 124 636 292 + 1;
- 124 636 292 ÷ 2 = 62 318 146 + 0;
- 62 318 146 ÷ 2 = 31 159 073 + 0;
- 31 159 073 ÷ 2 = 15 579 536 + 1;
- 15 579 536 ÷ 2 = 7 789 768 + 0;
- 7 789 768 ÷ 2 = 3 894 884 + 0;
- 3 894 884 ÷ 2 = 1 947 442 + 0;
- 1 947 442 ÷ 2 = 973 721 + 0;
- 973 721 ÷ 2 = 486 860 + 1;
- 486 860 ÷ 2 = 243 430 + 0;
- 243 430 ÷ 2 = 121 715 + 0;
- 121 715 ÷ 2 = 60 857 + 1;
- 60 857 ÷ 2 = 30 428 + 1;
- 30 428 ÷ 2 = 15 214 + 0;
- 15 214 ÷ 2 = 7 607 + 0;
- 7 607 ÷ 2 = 3 803 + 1;
- 3 803 ÷ 2 = 1 901 + 1;
- 1 901 ÷ 2 = 950 + 1;
- 950 ÷ 2 = 475 + 0;
- 475 ÷ 2 = 237 + 1;
- 237 ÷ 2 = 118 + 1;
- 118 ÷ 2 = 59 + 0;
- 59 ÷ 2 = 29 + 1;
- 29 ÷ 2 = 14 + 1;
- 14 ÷ 2 = 7 + 0;
- 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.
255 255 127 507(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
255 255 127 507 (base 10) = 11 1011 0110 1110 0110 0100 0010 0101 1101 0011 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.