11 000 000 011 001 109 999 999 999 999 673 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 11 000 000 011 001 109 999 999 999 999 673(10) to 64 bit double precision IEEE 754 binary floating point representation standard (1 bit for sign, 11 bits for exponent, 52 bits for mantissa)

What are the steps to convert decimal number
11 000 000 011 001 109 999 999 999 999 673(10) to 64 bit double precision IEEE 754 binary floating point representation (1 bit for sign, 11 bits for exponent, 52 bits for mantissa)

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;
  • 11 000 000 011 001 109 999 999 999 999 673 ÷ 2 = 5 500 000 005 500 554 999 999 999 999 836 + 1;
  • 5 500 000 005 500 554 999 999 999 999 836 ÷ 2 = 2 750 000 002 750 277 499 999 999 999 918 + 0;
  • 2 750 000 002 750 277 499 999 999 999 918 ÷ 2 = 1 375 000 001 375 138 749 999 999 999 959 + 0;
  • 1 375 000 001 375 138 749 999 999 999 959 ÷ 2 = 687 500 000 687 569 374 999 999 999 979 + 1;
  • 687 500 000 687 569 374 999 999 999 979 ÷ 2 = 343 750 000 343 784 687 499 999 999 989 + 1;
  • 343 750 000 343 784 687 499 999 999 989 ÷ 2 = 171 875 000 171 892 343 749 999 999 994 + 1;
  • 171 875 000 171 892 343 749 999 999 994 ÷ 2 = 85 937 500 085 946 171 874 999 999 997 + 0;
  • 85 937 500 085 946 171 874 999 999 997 ÷ 2 = 42 968 750 042 973 085 937 499 999 998 + 1;
  • 42 968 750 042 973 085 937 499 999 998 ÷ 2 = 21 484 375 021 486 542 968 749 999 999 + 0;
  • 21 484 375 021 486 542 968 749 999 999 ÷ 2 = 10 742 187 510 743 271 484 374 999 999 + 1;
  • 10 742 187 510 743 271 484 374 999 999 ÷ 2 = 5 371 093 755 371 635 742 187 499 999 + 1;
  • 5 371 093 755 371 635 742 187 499 999 ÷ 2 = 2 685 546 877 685 817 871 093 749 999 + 1;
  • 2 685 546 877 685 817 871 093 749 999 ÷ 2 = 1 342 773 438 842 908 935 546 874 999 + 1;
  • 1 342 773 438 842 908 935 546 874 999 ÷ 2 = 671 386 719 421 454 467 773 437 499 + 1;
  • 671 386 719 421 454 467 773 437 499 ÷ 2 = 335 693 359 710 727 233 886 718 749 + 1;
  • 335 693 359 710 727 233 886 718 749 ÷ 2 = 167 846 679 855 363 616 943 359 374 + 1;
  • 167 846 679 855 363 616 943 359 374 ÷ 2 = 83 923 339 927 681 808 471 679 687 + 0;
  • 83 923 339 927 681 808 471 679 687 ÷ 2 = 41 961 669 963 840 904 235 839 843 + 1;
  • 41 961 669 963 840 904 235 839 843 ÷ 2 = 20 980 834 981 920 452 117 919 921 + 1;
  • 20 980 834 981 920 452 117 919 921 ÷ 2 = 10 490 417 490 960 226 058 959 960 + 1;
  • 10 490 417 490 960 226 058 959 960 ÷ 2 = 5 245 208 745 480 113 029 479 980 + 0;
  • 5 245 208 745 480 113 029 479 980 ÷ 2 = 2 622 604 372 740 056 514 739 990 + 0;
  • 2 622 604 372 740 056 514 739 990 ÷ 2 = 1 311 302 186 370 028 257 369 995 + 0;
  • 1 311 302 186 370 028 257 369 995 ÷ 2 = 655 651 093 185 014 128 684 997 + 1;
  • 655 651 093 185 014 128 684 997 ÷ 2 = 327 825 546 592 507 064 342 498 + 1;
  • 327 825 546 592 507 064 342 498 ÷ 2 = 163 912 773 296 253 532 171 249 + 0;
  • 163 912 773 296 253 532 171 249 ÷ 2 = 81 956 386 648 126 766 085 624 + 1;
  • 81 956 386 648 126 766 085 624 ÷ 2 = 40 978 193 324 063 383 042 812 + 0;
  • 40 978 193 324 063 383 042 812 ÷ 2 = 20 489 096 662 031 691 521 406 + 0;
  • 20 489 096 662 031 691 521 406 ÷ 2 = 10 244 548 331 015 845 760 703 + 0;
  • 10 244 548 331 015 845 760 703 ÷ 2 = 5 122 274 165 507 922 880 351 + 1;
  • 5 122 274 165 507 922 880 351 ÷ 2 = 2 561 137 082 753 961 440 175 + 1;
  • 2 561 137 082 753 961 440 175 ÷ 2 = 1 280 568 541 376 980 720 087 + 1;
  • 1 280 568 541 376 980 720 087 ÷ 2 = 640 284 270 688 490 360 043 + 1;
  • 640 284 270 688 490 360 043 ÷ 2 = 320 142 135 344 245 180 021 + 1;
  • 320 142 135 344 245 180 021 ÷ 2 = 160 071 067 672 122 590 010 + 1;
  • 160 071 067 672 122 590 010 ÷ 2 = 80 035 533 836 061 295 005 + 0;
  • 80 035 533 836 061 295 005 ÷ 2 = 40 017 766 918 030 647 502 + 1;
  • 40 017 766 918 030 647 502 ÷ 2 = 20 008 883 459 015 323 751 + 0;
  • 20 008 883 459 015 323 751 ÷ 2 = 10 004 441 729 507 661 875 + 1;
  • 10 004 441 729 507 661 875 ÷ 2 = 5 002 220 864 753 830 937 + 1;
  • 5 002 220 864 753 830 937 ÷ 2 = 2 501 110 432 376 915 468 + 1;
  • 2 501 110 432 376 915 468 ÷ 2 = 1 250 555 216 188 457 734 + 0;
  • 1 250 555 216 188 457 734 ÷ 2 = 625 277 608 094 228 867 + 0;
  • 625 277 608 094 228 867 ÷ 2 = 312 638 804 047 114 433 + 1;
  • 312 638 804 047 114 433 ÷ 2 = 156 319 402 023 557 216 + 1;
  • 156 319 402 023 557 216 ÷ 2 = 78 159 701 011 778 608 + 0;
  • 78 159 701 011 778 608 ÷ 2 = 39 079 850 505 889 304 + 0;
  • 39 079 850 505 889 304 ÷ 2 = 19 539 925 252 944 652 + 0;
  • 19 539 925 252 944 652 ÷ 2 = 9 769 962 626 472 326 + 0;
  • 9 769 962 626 472 326 ÷ 2 = 4 884 981 313 236 163 + 0;
  • 4 884 981 313 236 163 ÷ 2 = 2 442 490 656 618 081 + 1;
  • 2 442 490 656 618 081 ÷ 2 = 1 221 245 328 309 040 + 1;
  • 1 221 245 328 309 040 ÷ 2 = 610 622 664 154 520 + 0;
  • 610 622 664 154 520 ÷ 2 = 305 311 332 077 260 + 0;
  • 305 311 332 077 260 ÷ 2 = 152 655 666 038 630 + 0;
  • 152 655 666 038 630 ÷ 2 = 76 327 833 019 315 + 0;
  • 76 327 833 019 315 ÷ 2 = 38 163 916 509 657 + 1;
  • 38 163 916 509 657 ÷ 2 = 19 081 958 254 828 + 1;
  • 19 081 958 254 828 ÷ 2 = 9 540 979 127 414 + 0;
  • 9 540 979 127 414 ÷ 2 = 4 770 489 563 707 + 0;
  • 4 770 489 563 707 ÷ 2 = 2 385 244 781 853 + 1;
  • 2 385 244 781 853 ÷ 2 = 1 192 622 390 926 + 1;
  • 1 192 622 390 926 ÷ 2 = 596 311 195 463 + 0;
  • 596 311 195 463 ÷ 2 = 298 155 597 731 + 1;
  • 298 155 597 731 ÷ 2 = 149 077 798 865 + 1;
  • 149 077 798 865 ÷ 2 = 74 538 899 432 + 1;
  • 74 538 899 432 ÷ 2 = 37 269 449 716 + 0;
  • 37 269 449 716 ÷ 2 = 18 634 724 858 + 0;
  • 18 634 724 858 ÷ 2 = 9 317 362 429 + 0;
  • 9 317 362 429 ÷ 2 = 4 658 681 214 + 1;
  • 4 658 681 214 ÷ 2 = 2 329 340 607 + 0;
  • 2 329 340 607 ÷ 2 = 1 164 670 303 + 1;
  • 1 164 670 303 ÷ 2 = 582 335 151 + 1;
  • 582 335 151 ÷ 2 = 291 167 575 + 1;
  • 291 167 575 ÷ 2 = 145 583 787 + 1;
  • 145 583 787 ÷ 2 = 72 791 893 + 1;
  • 72 791 893 ÷ 2 = 36 395 946 + 1;
  • 36 395 946 ÷ 2 = 18 197 973 + 0;
  • 18 197 973 ÷ 2 = 9 098 986 + 1;
  • 9 098 986 ÷ 2 = 4 549 493 + 0;
  • 4 549 493 ÷ 2 = 2 274 746 + 1;
  • 2 274 746 ÷ 2 = 1 137 373 + 0;
  • 1 137 373 ÷ 2 = 568 686 + 1;
  • 568 686 ÷ 2 = 284 343 + 0;
  • 284 343 ÷ 2 = 142 171 + 1;
  • 142 171 ÷ 2 = 71 085 + 1;
  • 71 085 ÷ 2 = 35 542 + 1;
  • 35 542 ÷ 2 = 17 771 + 0;
  • 17 771 ÷ 2 = 8 885 + 1;
  • 8 885 ÷ 2 = 4 442 + 1;
  • 4 442 ÷ 2 = 2 221 + 0;
  • 2 221 ÷ 2 = 1 110 + 1;
  • 1 110 ÷ 2 = 555 + 0;
  • 555 ÷ 2 = 277 + 1;
  • 277 ÷ 2 = 138 + 1;
  • 138 ÷ 2 = 69 + 0;
  • 69 ÷ 2 = 34 + 1;
  • 34 ÷ 2 = 17 + 0;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 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.

11 000 000 011 001 109 999 999 999 999 673(10) =


1000 1010 1101 0110 1110 1010 1011 1111 0100 0111 0110 0110 0001 1000 0011 0011 1010 1111 1100 0101 1000 1110 1111 1110 1011 1001(2)


3. Normalize the binary representation of the number.

Shift the decimal mark 103 positions to the left, so that only one non zero digit remains to the left of it:


11 000 000 011 001 109 999 999 999 999 673(10) =


1000 1010 1101 0110 1110 1010 1011 1111 0100 0111 0110 0110 0001 1000 0011 0011 1010 1111 1100 0101 1000 1110 1111 1110 1011 1001(2) =


1000 1010 1101 0110 1110 1010 1011 1111 0100 0111 0110 0110 0001 1000 0011 0011 1010 1111 1100 0101 1000 1110 1111 1110 1011 1001(2) × 20 =


1.0001 0101 1010 1101 1101 0101 0111 1110 1000 1110 1100 1100 0011 0000 0110 0111 0101 1111 1000 1011 0001 1101 1111 1101 0111 001(2) × 2103


4. Up to this moment, there are the following elements that would feed into the 64 bit double precision IEEE 754 binary floating point representation:

Sign 0 (a positive number)


Exponent (unadjusted): 103


Mantissa (not normalized):
1.0001 0101 1010 1101 1101 0101 0111 1110 1000 1110 1100 1100 0011 0000 0110 0111 0101 1111 1000 1011 0001 1101 1111 1101 0111 001


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


Exponent (unadjusted) + 2(11-1) - 1 =


103 + 2(11-1) - 1 =


(103 + 1 023)(10) =


1 126(10)


6. Convert the adjusted exponent from the decimal (base 10) to 11 bit binary.

Use the same technique of repeatedly dividing by 2:


  • division = quotient + remainder;
  • 1 126 ÷ 2 = 563 + 0;
  • 563 ÷ 2 = 281 + 1;
  • 281 ÷ 2 = 140 + 1;
  • 140 ÷ 2 = 70 + 0;
  • 70 ÷ 2 = 35 + 0;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

7. Construct the base 2 representation of the adjusted exponent.

Take all the remainders starting from the bottom of the list constructed above.


Exponent (adjusted) =


1126(10) =


100 0110 0110(2)


8. Normalize the mantissa.

a) Remove the leading (the leftmost) bit, since it's allways 1, and the decimal point, if the case.


b) Adjust its length to 52 bits, by removing the excess bits, from the right (if any of the excess bits is set on 1, we are losing precision...).


Mantissa (normalized) =


1. 0001 0101 1010 1101 1101 0101 0111 1110 1000 1110 1100 1100 0011 000 0011 0011 1010 1111 1100 0101 1000 1110 1111 1110 1011 1001 =


0001 0101 1010 1101 1101 0101 0111 1110 1000 1110 1100 1100 0011


9. The three elements that make up the number's 64 bit double precision IEEE 754 binary floating point representation:

Sign (1 bit) =
0 (a positive number)


Exponent (11 bits) =
100 0110 0110


Mantissa (52 bits) =
0001 0101 1010 1101 1101 0101 0111 1110 1000 1110 1100 1100 0011


Decimal number 11 000 000 011 001 109 999 999 999 999 673 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 0110 0110 - 0001 0101 1010 1101 1101 0101 0111 1110 1000 1110 1100 1100 0011

How to convert numbers from the decimal system (base ten) to 64 bit double precision IEEE 754 binary floating point standard

Follow the steps below to convert a base 10 decimal number to 64 bit double precision IEEE 754 binary floating point:

  • 1. If the number to be converted is negative, start with its the positive version.
  • 2. First convert the integer part. Divide repeatedly by 2 the positive representation of the integer number that is to be converted to binary, until we get a quotient that is equal to zero, keeping track of each remainder.
  • 3. Construct the base 2 representation of the positive integer part of the number, by taking all the remainders from the previous operations, 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. Then convert the fractional part. Multiply the number repeatedly by 2, until we get a fractional part that is equal to zero, keeping track of each integer part of the results.
  • 5. Construct the base 2 representation of the fractional part of the number, by taking all the integer parts of the multiplying operations, starting from the top of the list constructed above (they should appear in the binary representation, from left to right, in the order they have been calculated).
  • 6. Normalize the binary representation of the number, shifting the decimal mark (the decimal point) "n" positions either to the left, or to the right, so that only one non zero digit remains to the left of the decimal mark.
  • 7. Adjust the exponent in 11 bit excess/bias notation and then convert it from decimal (base 10) to 11 bit binary, by using the same technique of repeatedly dividing by 2, as shown above:
    Exponent (adjusted) = Exponent (unadjusted) + 2(11-1) - 1
  • 8. Normalize mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal mark, if the case) and adjust its length to 52 bits, either by removing the excess bits from the right (losing precision...) or by adding extra bits set on '0' to the right.
  • 9. Sign (it takes 1 bit) is either 1 for a negative or 0 for a positive number.

Example: convert the negative number -31.640 215 from the decimal system (base ten) to 64 bit double precision IEEE 754 binary floating point:

  • 1. Start with the positive version of the number:

    |-31.640 215| = 31.640 215

  • 2. First convert the integer part, 31. Divide it repeatedly by 2, keeping track of each remainder, until we get a quotient that is equal to zero:
    • division = quotient + remainder;
    • 31 ÷ 2 = 15 + 1;
    • 15 ÷ 2 = 7 + 1;
    • 7 ÷ 2 = 3 + 1;
    • 3 ÷ 2 = 1 + 1;
    • 1 ÷ 2 = 0 + 1;
    • We have encountered a quotient that is ZERO => FULL STOP
  • 3. Construct the base 2 representation of the integer part of the number by taking all the remainders of the previous dividing operations, starting from the bottom of the list constructed above:

    31(10) = 1 1111(2)

  • 4. Then, convert the fractional part, 0.640 215. Multiply repeatedly by 2, keeping track of each integer part of the results, until we get a fractional part that is equal to zero:
    • #) multiplying = integer + fractional part;
    • 1) 0.640 215 × 2 = 1 + 0.280 43;
    • 2) 0.280 43 × 2 = 0 + 0.560 86;
    • 3) 0.560 86 × 2 = 1 + 0.121 72;
    • 4) 0.121 72 × 2 = 0 + 0.243 44;
    • 5) 0.243 44 × 2 = 0 + 0.486 88;
    • 6) 0.486 88 × 2 = 0 + 0.973 76;
    • 7) 0.973 76 × 2 = 1 + 0.947 52;
    • 8) 0.947 52 × 2 = 1 + 0.895 04;
    • 9) 0.895 04 × 2 = 1 + 0.790 08;
    • 10) 0.790 08 × 2 = 1 + 0.580 16;
    • 11) 0.580 16 × 2 = 1 + 0.160 32;
    • 12) 0.160 32 × 2 = 0 + 0.320 64;
    • 13) 0.320 64 × 2 = 0 + 0.641 28;
    • 14) 0.641 28 × 2 = 1 + 0.282 56;
    • 15) 0.282 56 × 2 = 0 + 0.565 12;
    • 16) 0.565 12 × 2 = 1 + 0.130 24;
    • 17) 0.130 24 × 2 = 0 + 0.260 48;
    • 18) 0.260 48 × 2 = 0 + 0.520 96;
    • 19) 0.520 96 × 2 = 1 + 0.041 92;
    • 20) 0.041 92 × 2 = 0 + 0.083 84;
    • 21) 0.083 84 × 2 = 0 + 0.167 68;
    • 22) 0.167 68 × 2 = 0 + 0.335 36;
    • 23) 0.335 36 × 2 = 0 + 0.670 72;
    • 24) 0.670 72 × 2 = 1 + 0.341 44;
    • 25) 0.341 44 × 2 = 0 + 0.682 88;
    • 26) 0.682 88 × 2 = 1 + 0.365 76;
    • 27) 0.365 76 × 2 = 0 + 0.731 52;
    • 28) 0.731 52 × 2 = 1 + 0.463 04;
    • 29) 0.463 04 × 2 = 0 + 0.926 08;
    • 30) 0.926 08 × 2 = 1 + 0.852 16;
    • 31) 0.852 16 × 2 = 1 + 0.704 32;
    • 32) 0.704 32 × 2 = 1 + 0.408 64;
    • 33) 0.408 64 × 2 = 0 + 0.817 28;
    • 34) 0.817 28 × 2 = 1 + 0.634 56;
    • 35) 0.634 56 × 2 = 1 + 0.269 12;
    • 36) 0.269 12 × 2 = 0 + 0.538 24;
    • 37) 0.538 24 × 2 = 1 + 0.076 48;
    • 38) 0.076 48 × 2 = 0 + 0.152 96;
    • 39) 0.152 96 × 2 = 0 + 0.305 92;
    • 40) 0.305 92 × 2 = 0 + 0.611 84;
    • 41) 0.611 84 × 2 = 1 + 0.223 68;
    • 42) 0.223 68 × 2 = 0 + 0.447 36;
    • 43) 0.447 36 × 2 = 0 + 0.894 72;
    • 44) 0.894 72 × 2 = 1 + 0.789 44;
    • 45) 0.789 44 × 2 = 1 + 0.578 88;
    • 46) 0.578 88 × 2 = 1 + 0.157 76;
    • 47) 0.157 76 × 2 = 0 + 0.315 52;
    • 48) 0.315 52 × 2 = 0 + 0.631 04;
    • 49) 0.631 04 × 2 = 1 + 0.262 08;
    • 50) 0.262 08 × 2 = 0 + 0.524 16;
    • 51) 0.524 16 × 2 = 1 + 0.048 32;
    • 52) 0.048 32 × 2 = 0 + 0.096 64;
    • 53) 0.096 64 × 2 = 0 + 0.193 28;
    • We didn't get any fractional part that was equal to zero. But we had enough iterations (over Mantissa limit = 52) and at least one integer part that was different from zero => FULL STOP (losing precision...).
  • 5. Construct the base 2 representation of the fractional part of the number, by taking all the integer parts of the previous multiplying operations, starting from the top of the constructed list above:

    0.640 215(10) = 0.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2)

  • 6. Summarizing - the positive number before normalization:

    31.640 215(10) = 1 1111.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2)

  • 7. Normalize the binary representation of the number, shifting the decimal mark 4 positions to the left so that only one non-zero digit stays to the left of the decimal mark:

    31.640 215(10) =
    1 1111.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2) =
    1 1111.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2) × 20 =
    1.1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2) × 24

  • 8. Up to this moment, there are the following elements that would feed into the 64 bit double precision IEEE 754 binary floating point representation:

    Sign: 1 (a negative number)

    Exponent (unadjusted): 4

    Mantissa (not-normalized): 1.1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0

  • 9. Adjust the exponent in 11 bit excess/bias notation and then convert it from decimal (base 10) to 11 bit binary (base 2), by using the same technique of repeatedly dividing it by 2, as shown above:

    Exponent (adjusted) = Exponent (unadjusted) + 2(11-1) - 1 = (4 + 1023)(10) = 1027(10) =
    100 0000 0011(2)

  • 10. Normalize mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal sign) and adjust its length to 52 bits, by removing the excess bits, from the right (losing precision...):

    Mantissa (not-normalized): 1.1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0

    Mantissa (normalized): 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100

  • Conclusion:

    Sign (1 bit) = 1 (a negative number)

    Exponent (8 bits) = 100 0000 0011

    Mantissa (52 bits) = 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100

  • Number -31.640 215, converted from decimal system (base 10) to 64 bit double precision IEEE 754 binary floating point =
    1 - 100 0000 0011 - 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100