11 000 001 101 099 999 999 999 999 999 538 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 11 000 001 101 099 999 999 999 999 999 538(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 001 101 099 999 999 999 999 999 538(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 001 101 099 999 999 999 999 999 538 ÷ 2 = 5 500 000 550 549 999 999 999 999 999 769 + 0;
  • 5 500 000 550 549 999 999 999 999 999 769 ÷ 2 = 2 750 000 275 274 999 999 999 999 999 884 + 1;
  • 2 750 000 275 274 999 999 999 999 999 884 ÷ 2 = 1 375 000 137 637 499 999 999 999 999 942 + 0;
  • 1 375 000 137 637 499 999 999 999 999 942 ÷ 2 = 687 500 068 818 749 999 999 999 999 971 + 0;
  • 687 500 068 818 749 999 999 999 999 971 ÷ 2 = 343 750 034 409 374 999 999 999 999 985 + 1;
  • 343 750 034 409 374 999 999 999 999 985 ÷ 2 = 171 875 017 204 687 499 999 999 999 992 + 1;
  • 171 875 017 204 687 499 999 999 999 992 ÷ 2 = 85 937 508 602 343 749 999 999 999 996 + 0;
  • 85 937 508 602 343 749 999 999 999 996 ÷ 2 = 42 968 754 301 171 874 999 999 999 998 + 0;
  • 42 968 754 301 171 874 999 999 999 998 ÷ 2 = 21 484 377 150 585 937 499 999 999 999 + 0;
  • 21 484 377 150 585 937 499 999 999 999 ÷ 2 = 10 742 188 575 292 968 749 999 999 999 + 1;
  • 10 742 188 575 292 968 749 999 999 999 ÷ 2 = 5 371 094 287 646 484 374 999 999 999 + 1;
  • 5 371 094 287 646 484 374 999 999 999 ÷ 2 = 2 685 547 143 823 242 187 499 999 999 + 1;
  • 2 685 547 143 823 242 187 499 999 999 ÷ 2 = 1 342 773 571 911 621 093 749 999 999 + 1;
  • 1 342 773 571 911 621 093 749 999 999 ÷ 2 = 671 386 785 955 810 546 874 999 999 + 1;
  • 671 386 785 955 810 546 874 999 999 ÷ 2 = 335 693 392 977 905 273 437 499 999 + 1;
  • 335 693 392 977 905 273 437 499 999 ÷ 2 = 167 846 696 488 952 636 718 749 999 + 1;
  • 167 846 696 488 952 636 718 749 999 ÷ 2 = 83 923 348 244 476 318 359 374 999 + 1;
  • 83 923 348 244 476 318 359 374 999 ÷ 2 = 41 961 674 122 238 159 179 687 499 + 1;
  • 41 961 674 122 238 159 179 687 499 ÷ 2 = 20 980 837 061 119 079 589 843 749 + 1;
  • 20 980 837 061 119 079 589 843 749 ÷ 2 = 10 490 418 530 559 539 794 921 874 + 1;
  • 10 490 418 530 559 539 794 921 874 ÷ 2 = 5 245 209 265 279 769 897 460 937 + 0;
  • 5 245 209 265 279 769 897 460 937 ÷ 2 = 2 622 604 632 639 884 948 730 468 + 1;
  • 2 622 604 632 639 884 948 730 468 ÷ 2 = 1 311 302 316 319 942 474 365 234 + 0;
  • 1 311 302 316 319 942 474 365 234 ÷ 2 = 655 651 158 159 971 237 182 617 + 0;
  • 655 651 158 159 971 237 182 617 ÷ 2 = 327 825 579 079 985 618 591 308 + 1;
  • 327 825 579 079 985 618 591 308 ÷ 2 = 163 912 789 539 992 809 295 654 + 0;
  • 163 912 789 539 992 809 295 654 ÷ 2 = 81 956 394 769 996 404 647 827 + 0;
  • 81 956 394 769 996 404 647 827 ÷ 2 = 40 978 197 384 998 202 323 913 + 1;
  • 40 978 197 384 998 202 323 913 ÷ 2 = 20 489 098 692 499 101 161 956 + 1;
  • 20 489 098 692 499 101 161 956 ÷ 2 = 10 244 549 346 249 550 580 978 + 0;
  • 10 244 549 346 249 550 580 978 ÷ 2 = 5 122 274 673 124 775 290 489 + 0;
  • 5 122 274 673 124 775 290 489 ÷ 2 = 2 561 137 336 562 387 645 244 + 1;
  • 2 561 137 336 562 387 645 244 ÷ 2 = 1 280 568 668 281 193 822 622 + 0;
  • 1 280 568 668 281 193 822 622 ÷ 2 = 640 284 334 140 596 911 311 + 0;
  • 640 284 334 140 596 911 311 ÷ 2 = 320 142 167 070 298 455 655 + 1;
  • 320 142 167 070 298 455 655 ÷ 2 = 160 071 083 535 149 227 827 + 1;
  • 160 071 083 535 149 227 827 ÷ 2 = 80 035 541 767 574 613 913 + 1;
  • 80 035 541 767 574 613 913 ÷ 2 = 40 017 770 883 787 306 956 + 1;
  • 40 017 770 883 787 306 956 ÷ 2 = 20 008 885 441 893 653 478 + 0;
  • 20 008 885 441 893 653 478 ÷ 2 = 10 004 442 720 946 826 739 + 0;
  • 10 004 442 720 946 826 739 ÷ 2 = 5 002 221 360 473 413 369 + 1;
  • 5 002 221 360 473 413 369 ÷ 2 = 2 501 110 680 236 706 684 + 1;
  • 2 501 110 680 236 706 684 ÷ 2 = 1 250 555 340 118 353 342 + 0;
  • 1 250 555 340 118 353 342 ÷ 2 = 625 277 670 059 176 671 + 0;
  • 625 277 670 059 176 671 ÷ 2 = 312 638 835 029 588 335 + 1;
  • 312 638 835 029 588 335 ÷ 2 = 156 319 417 514 794 167 + 1;
  • 156 319 417 514 794 167 ÷ 2 = 78 159 708 757 397 083 + 1;
  • 78 159 708 757 397 083 ÷ 2 = 39 079 854 378 698 541 + 1;
  • 39 079 854 378 698 541 ÷ 2 = 19 539 927 189 349 270 + 1;
  • 19 539 927 189 349 270 ÷ 2 = 9 769 963 594 674 635 + 0;
  • 9 769 963 594 674 635 ÷ 2 = 4 884 981 797 337 317 + 1;
  • 4 884 981 797 337 317 ÷ 2 = 2 442 490 898 668 658 + 1;
  • 2 442 490 898 668 658 ÷ 2 = 1 221 245 449 334 329 + 0;
  • 1 221 245 449 334 329 ÷ 2 = 610 622 724 667 164 + 1;
  • 610 622 724 667 164 ÷ 2 = 305 311 362 333 582 + 0;
  • 305 311 362 333 582 ÷ 2 = 152 655 681 166 791 + 0;
  • 152 655 681 166 791 ÷ 2 = 76 327 840 583 395 + 1;
  • 76 327 840 583 395 ÷ 2 = 38 163 920 291 697 + 1;
  • 38 163 920 291 697 ÷ 2 = 19 081 960 145 848 + 1;
  • 19 081 960 145 848 ÷ 2 = 9 540 980 072 924 + 0;
  • 9 540 980 072 924 ÷ 2 = 4 770 490 036 462 + 0;
  • 4 770 490 036 462 ÷ 2 = 2 385 245 018 231 + 0;
  • 2 385 245 018 231 ÷ 2 = 1 192 622 509 115 + 1;
  • 1 192 622 509 115 ÷ 2 = 596 311 254 557 + 1;
  • 596 311 254 557 ÷ 2 = 298 155 627 278 + 1;
  • 298 155 627 278 ÷ 2 = 149 077 813 639 + 0;
  • 149 077 813 639 ÷ 2 = 74 538 906 819 + 1;
  • 74 538 906 819 ÷ 2 = 37 269 453 409 + 1;
  • 37 269 453 409 ÷ 2 = 18 634 726 704 + 1;
  • 18 634 726 704 ÷ 2 = 9 317 363 352 + 0;
  • 9 317 363 352 ÷ 2 = 4 658 681 676 + 0;
  • 4 658 681 676 ÷ 2 = 2 329 340 838 + 0;
  • 2 329 340 838 ÷ 2 = 1 164 670 419 + 0;
  • 1 164 670 419 ÷ 2 = 582 335 209 + 1;
  • 582 335 209 ÷ 2 = 291 167 604 + 1;
  • 291 167 604 ÷ 2 = 145 583 802 + 0;
  • 145 583 802 ÷ 2 = 72 791 901 + 0;
  • 72 791 901 ÷ 2 = 36 395 950 + 1;
  • 36 395 950 ÷ 2 = 18 197 975 + 0;
  • 18 197 975 ÷ 2 = 9 098 987 + 1;
  • 9 098 987 ÷ 2 = 4 549 493 + 1;
  • 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 001 101 099 999 999 999 999 999 538(10) =


1000 1010 1101 0110 1110 1011 1010 0110 0001 1101 1100 0111 0010 1101 1111 0011 0011 1100 1001 1001 0010 1111 1111 1110 0011 0010(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 001 101 099 999 999 999 999 999 538(10) =


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


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


1.0001 0101 1010 1101 1101 0111 0100 1100 0011 1011 1000 1110 0101 1011 1110 0110 0111 1001 0011 0010 0101 1111 1111 1100 0110 010(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 0111 0100 1100 0011 1011 1000 1110 0101 1011 1110 0110 0111 1001 0011 0010 0101 1111 1111 1100 0110 010


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 0111 0100 1100 0011 1011 1000 1110 0101 101 1111 0011 0011 1100 1001 1001 0010 1111 1111 1110 0011 0010 =


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


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 0111 0100 1100 0011 1011 1000 1110 0101


Decimal number 11 000 001 101 099 999 999 999 999 999 538 converted to 64 bit double precision IEEE 754 binary floating point representation:

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


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