Convert 6 005 202 039 099 999 449 to a Signed Binary in One's (1's) Complement Representation

How to convert decimal number 6 005 202 039 099 999 449(10) to a signed binary in one's (1's) complement representation

What are the steps to convert decimal number
6 005 202 039 099 999 449 to a signed binary in one's (1's) complement representation?

  • A signed integer, written in base ten, or a decimal system number, is a number written using the digits 0 through 9 and the sign, which can be positive (+) or negative (-). If positive, the sign is usually not written. A number written in base two, or binary, 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;
  • 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:

6 005 202 039 099 999 449(10) = 0101 0011 0101 0110 1100 0011 0111 0000 0000 1001 0000 0001 1100 0100 1101 1001

Spaces were used to group digits: for binary, by 4, for decimal, by 3.


How to convert signed integers from the decimal system to signed binary in one's complement representation

Follow the steps below to convert a signed base 10 integer number to signed binary in one's complement representation:

  • 1. If the number to be converted is negative, start with the positive version of the number.
  • 2. Divide repeatedly by 2 the positive representation of the integer number that is to be converted to binary, keeping track of each remainder, until we get a quotient that is equal to ZERO.
  • 3. Construct the base 2 representation of the positive number, by taking all the remainders starting from the bottom of the list constructed above. Thus, the last remainder of the divisions becomes the first symbol (the leftmost) of the base two number, while the first remainder becomes the last symbol (the rightmost).
  • 4. Binary numbers represented in computer language must have 4, 8, 16, 32, 64, ... bit length (a power of 2) - if needed, fill in '0' bits in front (to the left) of the base 2 number calculated above, up to the right length; this way the first bit (leftmost) will always be '0', correctly representing a positive number.
  • 5. To get the negative integer number representation in signed binary one's complement, replace all '0' bits with '1's and all '1' bits with '0's.

Example: convert the negative number -49 from the decimal system (base ten) to signed binary one's complement:

  • 1. Start with the positive version of the number: |-49| = 49
  • 2. Divide repeatedly 49 by 2, keeping track of each remainder:
    • division = quotient + remainder
    • 49 ÷ 2 = 24 + 1
    • 24 ÷ 2 = 12 + 0
    • 12 ÷ 2 = 6 + 0
    • 6 ÷ 2 = 3 + 0
    • 3 ÷ 2 = 1 + 1
    • 1 ÷ 2 = 0 + 1
  • 3. Construct the base 2 representation of the positive number, by taking all the remainders starting from the bottom of the list constructed above:
    49(10) = 11 0001(2)
  • 4. The actual bit length of base 2 representation is 6, so the positive binary computer representation of a signed binary will take in this case 8 bits (the least power of 2 that is larger than 6) - add '0's in front of the base 2 number, up to the required length:
    49(10) = 0011 0001(2)
  • 5. To get the negative integer number representation in signed binary one's complement, replace all '0' bits with '1's and all '1' bits with '0's:
    -49(10) = 1100 1110
  • Number -49(10), signed integer, converted from the decimal system (base 10) to signed binary in one's complement representation = 1100 1110