1. Divide the number repeatedly by 2:
Keep track of each remainder.
We stop when we get a quotient that is equal to zero.
- division = quotient + remainder;
- 44 999 401 713 989 277 ÷ 2 = 22 499 700 856 994 638 + 1;
- 22 499 700 856 994 638 ÷ 2 = 11 249 850 428 497 319 + 0;
- 11 249 850 428 497 319 ÷ 2 = 5 624 925 214 248 659 + 1;
- 5 624 925 214 248 659 ÷ 2 = 2 812 462 607 124 329 + 1;
- 2 812 462 607 124 329 ÷ 2 = 1 406 231 303 562 164 + 1;
- 1 406 231 303 562 164 ÷ 2 = 703 115 651 781 082 + 0;
- 703 115 651 781 082 ÷ 2 = 351 557 825 890 541 + 0;
- 351 557 825 890 541 ÷ 2 = 175 778 912 945 270 + 1;
- 175 778 912 945 270 ÷ 2 = 87 889 456 472 635 + 0;
- 87 889 456 472 635 ÷ 2 = 43 944 728 236 317 + 1;
- 43 944 728 236 317 ÷ 2 = 21 972 364 118 158 + 1;
- 21 972 364 118 158 ÷ 2 = 10 986 182 059 079 + 0;
- 10 986 182 059 079 ÷ 2 = 5 493 091 029 539 + 1;
- 5 493 091 029 539 ÷ 2 = 2 746 545 514 769 + 1;
- 2 746 545 514 769 ÷ 2 = 1 373 272 757 384 + 1;
- 1 373 272 757 384 ÷ 2 = 686 636 378 692 + 0;
- 686 636 378 692 ÷ 2 = 343 318 189 346 + 0;
- 343 318 189 346 ÷ 2 = 171 659 094 673 + 0;
- 171 659 094 673 ÷ 2 = 85 829 547 336 + 1;
- 85 829 547 336 ÷ 2 = 42 914 773 668 + 0;
- 42 914 773 668 ÷ 2 = 21 457 386 834 + 0;
- 21 457 386 834 ÷ 2 = 10 728 693 417 + 0;
- 10 728 693 417 ÷ 2 = 5 364 346 708 + 1;
- 5 364 346 708 ÷ 2 = 2 682 173 354 + 0;
- 2 682 173 354 ÷ 2 = 1 341 086 677 + 0;
- 1 341 086 677 ÷ 2 = 670 543 338 + 1;
- 670 543 338 ÷ 2 = 335 271 669 + 0;
- 335 271 669 ÷ 2 = 167 635 834 + 1;
- 167 635 834 ÷ 2 = 83 817 917 + 0;
- 83 817 917 ÷ 2 = 41 908 958 + 1;
- 41 908 958 ÷ 2 = 20 954 479 + 0;
- 20 954 479 ÷ 2 = 10 477 239 + 1;
- 10 477 239 ÷ 2 = 5 238 619 + 1;
- 5 238 619 ÷ 2 = 2 619 309 + 1;
- 2 619 309 ÷ 2 = 1 309 654 + 1;
- 1 309 654 ÷ 2 = 654 827 + 0;
- 654 827 ÷ 2 = 327 413 + 1;
- 327 413 ÷ 2 = 163 706 + 1;
- 163 706 ÷ 2 = 81 853 + 0;
- 81 853 ÷ 2 = 40 926 + 1;
- 40 926 ÷ 2 = 20 463 + 0;
- 20 463 ÷ 2 = 10 231 + 1;
- 10 231 ÷ 2 = 5 115 + 1;
- 5 115 ÷ 2 = 2 557 + 1;
- 2 557 ÷ 2 = 1 278 + 1;
- 1 278 ÷ 2 = 639 + 0;
- 639 ÷ 2 = 319 + 1;
- 319 ÷ 2 = 159 + 1;
- 159 ÷ 2 = 79 + 1;
- 79 ÷ 2 = 39 + 1;
- 39 ÷ 2 = 19 + 1;
- 19 ÷ 2 = 9 + 1;
- 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.
44 999 401 713 989 277(10) = 1001 1111 1101 1110 1011 0111 1010 1010 0100 0100 0111 0110 1001 1101(2)
3. Determine the signed binary number bit length:
The base 2 number's actual length, in bits: 56.
- A signed binary's bit length must be equal to a power of 2, as of:
- 21 = 2; 22 = 4; 23 = 8; 24 = 16; 25 = 32; 26 = 64; ...
- The first bit (the leftmost) indicates the sign:
- 0 = positive integer number, 1 = negative integer number
The least number that is:
1) a power of 2
2) and is larger than the actual length, 56,
3) so that the first bit (leftmost) could be zero
(we deal with a positive number at this moment)
=== is: 64.
4. Get the positive binary computer representation on 64 bits (8 Bytes):
If needed, add extra 0s in front (to the left) of the base 2 number, up to the required length, 64.
Decimal Number 44 999 401 713 989 277(10) converted to signed binary in two's complement representation:
Spaces were used to group digits: for binary, by 4, for decimal, by 3.