0.000 000 000 000 000 000 008 558 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 0.000 000 000 000 000 000 008 558(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
0.000 000 000 000 000 000 008 558(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. First, convert to binary (in base 2) the integer part: 0.
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;
  • 0 ÷ 2 = 0 + 0;

2. Construct the base 2 representation of the integer part of the number.

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

0(10) =


0(2)


3. Convert to binary (base 2) the fractional part: 0.000 000 000 000 000 000 008 558.

Multiply it repeatedly by 2.


Keep track of each integer part of the results.


Stop when we get a fractional part that is equal to zero.


  • #) multiplying = integer + fractional part;
  • 1) 0.000 000 000 000 000 000 008 558 × 2 = 0 + 0.000 000 000 000 000 000 017 116;
  • 2) 0.000 000 000 000 000 000 017 116 × 2 = 0 + 0.000 000 000 000 000 000 034 232;
  • 3) 0.000 000 000 000 000 000 034 232 × 2 = 0 + 0.000 000 000 000 000 000 068 464;
  • 4) 0.000 000 000 000 000 000 068 464 × 2 = 0 + 0.000 000 000 000 000 000 136 928;
  • 5) 0.000 000 000 000 000 000 136 928 × 2 = 0 + 0.000 000 000 000 000 000 273 856;
  • 6) 0.000 000 000 000 000 000 273 856 × 2 = 0 + 0.000 000 000 000 000 000 547 712;
  • 7) 0.000 000 000 000 000 000 547 712 × 2 = 0 + 0.000 000 000 000 000 001 095 424;
  • 8) 0.000 000 000 000 000 001 095 424 × 2 = 0 + 0.000 000 000 000 000 002 190 848;
  • 9) 0.000 000 000 000 000 002 190 848 × 2 = 0 + 0.000 000 000 000 000 004 381 696;
  • 10) 0.000 000 000 000 000 004 381 696 × 2 = 0 + 0.000 000 000 000 000 008 763 392;
  • 11) 0.000 000 000 000 000 008 763 392 × 2 = 0 + 0.000 000 000 000 000 017 526 784;
  • 12) 0.000 000 000 000 000 017 526 784 × 2 = 0 + 0.000 000 000 000 000 035 053 568;
  • 13) 0.000 000 000 000 000 035 053 568 × 2 = 0 + 0.000 000 000 000 000 070 107 136;
  • 14) 0.000 000 000 000 000 070 107 136 × 2 = 0 + 0.000 000 000 000 000 140 214 272;
  • 15) 0.000 000 000 000 000 140 214 272 × 2 = 0 + 0.000 000 000 000 000 280 428 544;
  • 16) 0.000 000 000 000 000 280 428 544 × 2 = 0 + 0.000 000 000 000 000 560 857 088;
  • 17) 0.000 000 000 000 000 560 857 088 × 2 = 0 + 0.000 000 000 000 001 121 714 176;
  • 18) 0.000 000 000 000 001 121 714 176 × 2 = 0 + 0.000 000 000 000 002 243 428 352;
  • 19) 0.000 000 000 000 002 243 428 352 × 2 = 0 + 0.000 000 000 000 004 486 856 704;
  • 20) 0.000 000 000 000 004 486 856 704 × 2 = 0 + 0.000 000 000 000 008 973 713 408;
  • 21) 0.000 000 000 000 008 973 713 408 × 2 = 0 + 0.000 000 000 000 017 947 426 816;
  • 22) 0.000 000 000 000 017 947 426 816 × 2 = 0 + 0.000 000 000 000 035 894 853 632;
  • 23) 0.000 000 000 000 035 894 853 632 × 2 = 0 + 0.000 000 000 000 071 789 707 264;
  • 24) 0.000 000 000 000 071 789 707 264 × 2 = 0 + 0.000 000 000 000 143 579 414 528;
  • 25) 0.000 000 000 000 143 579 414 528 × 2 = 0 + 0.000 000 000 000 287 158 829 056;
  • 26) 0.000 000 000 000 287 158 829 056 × 2 = 0 + 0.000 000 000 000 574 317 658 112;
  • 27) 0.000 000 000 000 574 317 658 112 × 2 = 0 + 0.000 000 000 001 148 635 316 224;
  • 28) 0.000 000 000 001 148 635 316 224 × 2 = 0 + 0.000 000 000 002 297 270 632 448;
  • 29) 0.000 000 000 002 297 270 632 448 × 2 = 0 + 0.000 000 000 004 594 541 264 896;
  • 30) 0.000 000 000 004 594 541 264 896 × 2 = 0 + 0.000 000 000 009 189 082 529 792;
  • 31) 0.000 000 000 009 189 082 529 792 × 2 = 0 + 0.000 000 000 018 378 165 059 584;
  • 32) 0.000 000 000 018 378 165 059 584 × 2 = 0 + 0.000 000 000 036 756 330 119 168;
  • 33) 0.000 000 000 036 756 330 119 168 × 2 = 0 + 0.000 000 000 073 512 660 238 336;
  • 34) 0.000 000 000 073 512 660 238 336 × 2 = 0 + 0.000 000 000 147 025 320 476 672;
  • 35) 0.000 000 000 147 025 320 476 672 × 2 = 0 + 0.000 000 000 294 050 640 953 344;
  • 36) 0.000 000 000 294 050 640 953 344 × 2 = 0 + 0.000 000 000 588 101 281 906 688;
  • 37) 0.000 000 000 588 101 281 906 688 × 2 = 0 + 0.000 000 001 176 202 563 813 376;
  • 38) 0.000 000 001 176 202 563 813 376 × 2 = 0 + 0.000 000 002 352 405 127 626 752;
  • 39) 0.000 000 002 352 405 127 626 752 × 2 = 0 + 0.000 000 004 704 810 255 253 504;
  • 40) 0.000 000 004 704 810 255 253 504 × 2 = 0 + 0.000 000 009 409 620 510 507 008;
  • 41) 0.000 000 009 409 620 510 507 008 × 2 = 0 + 0.000 000 018 819 241 021 014 016;
  • 42) 0.000 000 018 819 241 021 014 016 × 2 = 0 + 0.000 000 037 638 482 042 028 032;
  • 43) 0.000 000 037 638 482 042 028 032 × 2 = 0 + 0.000 000 075 276 964 084 056 064;
  • 44) 0.000 000 075 276 964 084 056 064 × 2 = 0 + 0.000 000 150 553 928 168 112 128;
  • 45) 0.000 000 150 553 928 168 112 128 × 2 = 0 + 0.000 000 301 107 856 336 224 256;
  • 46) 0.000 000 301 107 856 336 224 256 × 2 = 0 + 0.000 000 602 215 712 672 448 512;
  • 47) 0.000 000 602 215 712 672 448 512 × 2 = 0 + 0.000 001 204 431 425 344 897 024;
  • 48) 0.000 001 204 431 425 344 897 024 × 2 = 0 + 0.000 002 408 862 850 689 794 048;
  • 49) 0.000 002 408 862 850 689 794 048 × 2 = 0 + 0.000 004 817 725 701 379 588 096;
  • 50) 0.000 004 817 725 701 379 588 096 × 2 = 0 + 0.000 009 635 451 402 759 176 192;
  • 51) 0.000 009 635 451 402 759 176 192 × 2 = 0 + 0.000 019 270 902 805 518 352 384;
  • 52) 0.000 019 270 902 805 518 352 384 × 2 = 0 + 0.000 038 541 805 611 036 704 768;
  • 53) 0.000 038 541 805 611 036 704 768 × 2 = 0 + 0.000 077 083 611 222 073 409 536;
  • 54) 0.000 077 083 611 222 073 409 536 × 2 = 0 + 0.000 154 167 222 444 146 819 072;
  • 55) 0.000 154 167 222 444 146 819 072 × 2 = 0 + 0.000 308 334 444 888 293 638 144;
  • 56) 0.000 308 334 444 888 293 638 144 × 2 = 0 + 0.000 616 668 889 776 587 276 288;
  • 57) 0.000 616 668 889 776 587 276 288 × 2 = 0 + 0.001 233 337 779 553 174 552 576;
  • 58) 0.001 233 337 779 553 174 552 576 × 2 = 0 + 0.002 466 675 559 106 349 105 152;
  • 59) 0.002 466 675 559 106 349 105 152 × 2 = 0 + 0.004 933 351 118 212 698 210 304;
  • 60) 0.004 933 351 118 212 698 210 304 × 2 = 0 + 0.009 866 702 236 425 396 420 608;
  • 61) 0.009 866 702 236 425 396 420 608 × 2 = 0 + 0.019 733 404 472 850 792 841 216;
  • 62) 0.019 733 404 472 850 792 841 216 × 2 = 0 + 0.039 466 808 945 701 585 682 432;
  • 63) 0.039 466 808 945 701 585 682 432 × 2 = 0 + 0.078 933 617 891 403 171 364 864;
  • 64) 0.078 933 617 891 403 171 364 864 × 2 = 0 + 0.157 867 235 782 806 342 729 728;
  • 65) 0.157 867 235 782 806 342 729 728 × 2 = 0 + 0.315 734 471 565 612 685 459 456;
  • 66) 0.315 734 471 565 612 685 459 456 × 2 = 0 + 0.631 468 943 131 225 370 918 912;
  • 67) 0.631 468 943 131 225 370 918 912 × 2 = 1 + 0.262 937 886 262 450 741 837 824;
  • 68) 0.262 937 886 262 450 741 837 824 × 2 = 0 + 0.525 875 772 524 901 483 675 648;
  • 69) 0.525 875 772 524 901 483 675 648 × 2 = 1 + 0.051 751 545 049 802 967 351 296;
  • 70) 0.051 751 545 049 802 967 351 296 × 2 = 0 + 0.103 503 090 099 605 934 702 592;
  • 71) 0.103 503 090 099 605 934 702 592 × 2 = 0 + 0.207 006 180 199 211 869 405 184;
  • 72) 0.207 006 180 199 211 869 405 184 × 2 = 0 + 0.414 012 360 398 423 738 810 368;
  • 73) 0.414 012 360 398 423 738 810 368 × 2 = 0 + 0.828 024 720 796 847 477 620 736;
  • 74) 0.828 024 720 796 847 477 620 736 × 2 = 1 + 0.656 049 441 593 694 955 241 472;
  • 75) 0.656 049 441 593 694 955 241 472 × 2 = 1 + 0.312 098 883 187 389 910 482 944;
  • 76) 0.312 098 883 187 389 910 482 944 × 2 = 0 + 0.624 197 766 374 779 820 965 888;
  • 77) 0.624 197 766 374 779 820 965 888 × 2 = 1 + 0.248 395 532 749 559 641 931 776;
  • 78) 0.248 395 532 749 559 641 931 776 × 2 = 0 + 0.496 791 065 499 119 283 863 552;
  • 79) 0.496 791 065 499 119 283 863 552 × 2 = 0 + 0.993 582 130 998 238 567 727 104;
  • 80) 0.993 582 130 998 238 567 727 104 × 2 = 1 + 0.987 164 261 996 477 135 454 208;
  • 81) 0.987 164 261 996 477 135 454 208 × 2 = 1 + 0.974 328 523 992 954 270 908 416;
  • 82) 0.974 328 523 992 954 270 908 416 × 2 = 1 + 0.948 657 047 985 908 541 816 832;
  • 83) 0.948 657 047 985 908 541 816 832 × 2 = 1 + 0.897 314 095 971 817 083 633 664;
  • 84) 0.897 314 095 971 817 083 633 664 × 2 = 1 + 0.794 628 191 943 634 167 267 328;
  • 85) 0.794 628 191 943 634 167 267 328 × 2 = 1 + 0.589 256 383 887 268 334 534 656;
  • 86) 0.589 256 383 887 268 334 534 656 × 2 = 1 + 0.178 512 767 774 536 669 069 312;
  • 87) 0.178 512 767 774 536 669 069 312 × 2 = 0 + 0.357 025 535 549 073 338 138 624;
  • 88) 0.357 025 535 549 073 338 138 624 × 2 = 0 + 0.714 051 071 098 146 676 277 248;
  • 89) 0.714 051 071 098 146 676 277 248 × 2 = 1 + 0.428 102 142 196 293 352 554 496;
  • 90) 0.428 102 142 196 293 352 554 496 × 2 = 0 + 0.856 204 284 392 586 705 108 992;
  • 91) 0.856 204 284 392 586 705 108 992 × 2 = 1 + 0.712 408 568 785 173 410 217 984;
  • 92) 0.712 408 568 785 173 410 217 984 × 2 = 1 + 0.424 817 137 570 346 820 435 968;
  • 93) 0.424 817 137 570 346 820 435 968 × 2 = 0 + 0.849 634 275 140 693 640 871 936;
  • 94) 0.849 634 275 140 693 640 871 936 × 2 = 1 + 0.699 268 550 281 387 281 743 872;
  • 95) 0.699 268 550 281 387 281 743 872 × 2 = 1 + 0.398 537 100 562 774 563 487 744;
  • 96) 0.398 537 100 562 774 563 487 744 × 2 = 0 + 0.797 074 201 125 549 126 975 488;
  • 97) 0.797 074 201 125 549 126 975 488 × 2 = 1 + 0.594 148 402 251 098 253 950 976;
  • 98) 0.594 148 402 251 098 253 950 976 × 2 = 1 + 0.188 296 804 502 196 507 901 952;
  • 99) 0.188 296 804 502 196 507 901 952 × 2 = 0 + 0.376 593 609 004 393 015 803 904;
  • 100) 0.376 593 609 004 393 015 803 904 × 2 = 0 + 0.753 187 218 008 786 031 607 808;
  • 101) 0.753 187 218 008 786 031 607 808 × 2 = 1 + 0.506 374 436 017 572 063 215 616;
  • 102) 0.506 374 436 017 572 063 215 616 × 2 = 1 + 0.012 748 872 035 144 126 431 232;
  • 103) 0.012 748 872 035 144 126 431 232 × 2 = 0 + 0.025 497 744 070 288 252 862 464;
  • 104) 0.025 497 744 070 288 252 862 464 × 2 = 0 + 0.050 995 488 140 576 505 724 928;
  • 105) 0.050 995 488 140 576 505 724 928 × 2 = 0 + 0.101 990 976 281 153 011 449 856;
  • 106) 0.101 990 976 281 153 011 449 856 × 2 = 0 + 0.203 981 952 562 306 022 899 712;
  • 107) 0.203 981 952 562 306 022 899 712 × 2 = 0 + 0.407 963 905 124 612 045 799 424;
  • 108) 0.407 963 905 124 612 045 799 424 × 2 = 0 + 0.815 927 810 249 224 091 598 848;
  • 109) 0.815 927 810 249 224 091 598 848 × 2 = 1 + 0.631 855 620 498 448 183 197 696;
  • 110) 0.631 855 620 498 448 183 197 696 × 2 = 1 + 0.263 711 240 996 896 366 395 392;
  • 111) 0.263 711 240 996 896 366 395 392 × 2 = 0 + 0.527 422 481 993 792 732 790 784;
  • 112) 0.527 422 481 993 792 732 790 784 × 2 = 1 + 0.054 844 963 987 585 465 581 568;
  • 113) 0.054 844 963 987 585 465 581 568 × 2 = 0 + 0.109 689 927 975 170 931 163 136;
  • 114) 0.109 689 927 975 170 931 163 136 × 2 = 0 + 0.219 379 855 950 341 862 326 272;
  • 115) 0.219 379 855 950 341 862 326 272 × 2 = 0 + 0.438 759 711 900 683 724 652 544;
  • 116) 0.438 759 711 900 683 724 652 544 × 2 = 0 + 0.877 519 423 801 367 449 305 088;
  • 117) 0.877 519 423 801 367 449 305 088 × 2 = 1 + 0.755 038 847 602 734 898 610 176;
  • 118) 0.755 038 847 602 734 898 610 176 × 2 = 1 + 0.510 077 695 205 469 797 220 352;
  • 119) 0.510 077 695 205 469 797 220 352 × 2 = 1 + 0.020 155 390 410 939 594 440 704;

We didn't get any fractional part that was equal to zero. But we had enough iterations (over Mantissa limit) and at least one integer that was different from zero => FULL STOP (Losing precision - the converted number we get in the end will be just a very good approximation of the initial one).


4. Construct the base 2 representation of the fractional part of the number.

Take all the integer parts of the multiplying operations, starting from the top of the constructed list above:


0.000 000 000 000 000 000 008 558(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1000 0110 1001 1111 1100 1011 0110 1100 1100 0000 1101 0000 111(2)

5. Positive number before normalization:

0.000 000 000 000 000 000 008 558(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1000 0110 1001 1111 1100 1011 0110 1100 1100 0000 1101 0000 111(2)

6. Normalize the binary representation of the number.

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


0.000 000 000 000 000 000 008 558(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1000 0110 1001 1111 1100 1011 0110 1100 1100 0000 1101 0000 111(2) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1000 0110 1001 1111 1100 1011 0110 1100 1100 0000 1101 0000 111(2) × 20 =


1.0100 0011 0100 1111 1110 0101 1011 0110 0110 0000 0110 1000 0111(2) × 2-67


7. 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): -67


Mantissa (not normalized):
1.0100 0011 0100 1111 1110 0101 1011 0110 0110 0000 0110 1000 0111


8. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


-67 + 2(11-1) - 1 =


(-67 + 1 023)(10) =


956(10)


9. 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;
  • 956 ÷ 2 = 478 + 0;
  • 478 ÷ 2 = 239 + 0;
  • 239 ÷ 2 = 119 + 1;
  • 119 ÷ 2 = 59 + 1;
  • 59 ÷ 2 = 29 + 1;
  • 29 ÷ 2 = 14 + 1;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

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

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


Exponent (adjusted) =


956(10) =


011 1011 1100(2)


11. 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, only if necessary (not the case here).


Mantissa (normalized) =


1. 0100 0011 0100 1111 1110 0101 1011 0110 0110 0000 0110 1000 0111 =


0100 0011 0100 1111 1110 0101 1011 0110 0110 0000 0110 1000 0111


12. 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) =
011 1011 1100


Mantissa (52 bits) =
0100 0011 0100 1111 1110 0101 1011 0110 0110 0000 0110 1000 0111


Decimal number 0.000 000 000 000 000 000 008 558 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 011 1011 1100 - 0100 0011 0100 1111 1110 0101 1011 0110 0110 0000 0110 1000 0111


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