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;
- 6 005 202 039 099 999 449 ÷ 2 = 3 002 601 019 549 999 724 + 1;
- 3 002 601 019 549 999 724 ÷ 2 = 1 501 300 509 774 999 862 + 0;
- 1 501 300 509 774 999 862 ÷ 2 = 750 650 254 887 499 931 + 0;
- 750 650 254 887 499 931 ÷ 2 = 375 325 127 443 749 965 + 1;
- 375 325 127 443 749 965 ÷ 2 = 187 662 563 721 874 982 + 1;
- 187 662 563 721 874 982 ÷ 2 = 93 831 281 860 937 491 + 0;
- 93 831 281 860 937 491 ÷ 2 = 46 915 640 930 468 745 + 1;
- 46 915 640 930 468 745 ÷ 2 = 23 457 820 465 234 372 + 1;
- 23 457 820 465 234 372 ÷ 2 = 11 728 910 232 617 186 + 0;
- 11 728 910 232 617 186 ÷ 2 = 5 864 455 116 308 593 + 0;
- 5 864 455 116 308 593 ÷ 2 = 2 932 227 558 154 296 + 1;
- 2 932 227 558 154 296 ÷ 2 = 1 466 113 779 077 148 + 0;
- 1 466 113 779 077 148 ÷ 2 = 733 056 889 538 574 + 0;
- 733 056 889 538 574 ÷ 2 = 366 528 444 769 287 + 0;
- 366 528 444 769 287 ÷ 2 = 183 264 222 384 643 + 1;
- 183 264 222 384 643 ÷ 2 = 91 632 111 192 321 + 1;
- 91 632 111 192 321 ÷ 2 = 45 816 055 596 160 + 1;
- 45 816 055 596 160 ÷ 2 = 22 908 027 798 080 + 0;
- 22 908 027 798 080 ÷ 2 = 11 454 013 899 040 + 0;
- 11 454 013 899 040 ÷ 2 = 5 727 006 949 520 + 0;
- 5 727 006 949 520 ÷ 2 = 2 863 503 474 760 + 0;
- 2 863 503 474 760 ÷ 2 = 1 431 751 737 380 + 0;
- 1 431 751 737 380 ÷ 2 = 715 875 868 690 + 0;
- 715 875 868 690 ÷ 2 = 357 937 934 345 + 0;
- 357 937 934 345 ÷ 2 = 178 968 967 172 + 1;
- 178 968 967 172 ÷ 2 = 89 484 483 586 + 0;
- 89 484 483 586 ÷ 2 = 44 742 241 793 + 0;
- 44 742 241 793 ÷ 2 = 22 371 120 896 + 1;
- 22 371 120 896 ÷ 2 = 11 185 560 448 + 0;
- 11 185 560 448 ÷ 2 = 5 592 780 224 + 0;
- 5 592 780 224 ÷ 2 = 2 796 390 112 + 0;
- 2 796 390 112 ÷ 2 = 1 398 195 056 + 0;
- 1 398 195 056 ÷ 2 = 699 097 528 + 0;
- 699 097 528 ÷ 2 = 349 548 764 + 0;
- 349 548 764 ÷ 2 = 174 774 382 + 0;
- 174 774 382 ÷ 2 = 87 387 191 + 0;
- 87 387 191 ÷ 2 = 43 693 595 + 1;
- 43 693 595 ÷ 2 = 21 846 797 + 1;
- 21 846 797 ÷ 2 = 10 923 398 + 1;
- 10 923 398 ÷ 2 = 5 461 699 + 0;
- 5 461 699 ÷ 2 = 2 730 849 + 1;
- 2 730 849 ÷ 2 = 1 365 424 + 1;
- 1 365 424 ÷ 2 = 682 712 + 0;
- 682 712 ÷ 2 = 341 356 + 0;
- 341 356 ÷ 2 = 170 678 + 0;
- 170 678 ÷ 2 = 85 339 + 0;
- 85 339 ÷ 2 = 42 669 + 1;
- 42 669 ÷ 2 = 21 334 + 1;
- 21 334 ÷ 2 = 10 667 + 0;
- 10 667 ÷ 2 = 5 333 + 1;
- 5 333 ÷ 2 = 2 666 + 1;
- 2 666 ÷ 2 = 1 333 + 0;
- 1 333 ÷ 2 = 666 + 1;
- 666 ÷ 2 = 333 + 0;
- 333 ÷ 2 = 166 + 1;
- 166 ÷ 2 = 83 + 0;
- 83 ÷ 2 = 41 + 1;
- 41 ÷ 2 = 20 + 1;
- 20 ÷ 2 = 10 + 0;
- 10 ÷ 2 = 5 + 0;
- 5 ÷ 2 = 2 + 1;
- 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.
6 005 202 039 099 999 449(10) = 101 0011 0101 0110 1100 0011 0111 0000 0000 1001 0000 0001 1100 0100 1101 1001(2)
3. Determine the signed binary number bit length:
The base 2 number's actual length, in bits: 63.
- 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, 63,
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 6 005 202 039 099 999 449(10) converted to signed binary in one's complement representation: