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

Convert decimal 0.000 000 000 000 000 000 008 44(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 44(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 44.

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 44 × 2 = 0 + 0.000 000 000 000 000 000 016 88;
  • 2) 0.000 000 000 000 000 000 016 88 × 2 = 0 + 0.000 000 000 000 000 000 033 76;
  • 3) 0.000 000 000 000 000 000 033 76 × 2 = 0 + 0.000 000 000 000 000 000 067 52;
  • 4) 0.000 000 000 000 000 000 067 52 × 2 = 0 + 0.000 000 000 000 000 000 135 04;
  • 5) 0.000 000 000 000 000 000 135 04 × 2 = 0 + 0.000 000 000 000 000 000 270 08;
  • 6) 0.000 000 000 000 000 000 270 08 × 2 = 0 + 0.000 000 000 000 000 000 540 16;
  • 7) 0.000 000 000 000 000 000 540 16 × 2 = 0 + 0.000 000 000 000 000 001 080 32;
  • 8) 0.000 000 000 000 000 001 080 32 × 2 = 0 + 0.000 000 000 000 000 002 160 64;
  • 9) 0.000 000 000 000 000 002 160 64 × 2 = 0 + 0.000 000 000 000 000 004 321 28;
  • 10) 0.000 000 000 000 000 004 321 28 × 2 = 0 + 0.000 000 000 000 000 008 642 56;
  • 11) 0.000 000 000 000 000 008 642 56 × 2 = 0 + 0.000 000 000 000 000 017 285 12;
  • 12) 0.000 000 000 000 000 017 285 12 × 2 = 0 + 0.000 000 000 000 000 034 570 24;
  • 13) 0.000 000 000 000 000 034 570 24 × 2 = 0 + 0.000 000 000 000 000 069 140 48;
  • 14) 0.000 000 000 000 000 069 140 48 × 2 = 0 + 0.000 000 000 000 000 138 280 96;
  • 15) 0.000 000 000 000 000 138 280 96 × 2 = 0 + 0.000 000 000 000 000 276 561 92;
  • 16) 0.000 000 000 000 000 276 561 92 × 2 = 0 + 0.000 000 000 000 000 553 123 84;
  • 17) 0.000 000 000 000 000 553 123 84 × 2 = 0 + 0.000 000 000 000 001 106 247 68;
  • 18) 0.000 000 000 000 001 106 247 68 × 2 = 0 + 0.000 000 000 000 002 212 495 36;
  • 19) 0.000 000 000 000 002 212 495 36 × 2 = 0 + 0.000 000 000 000 004 424 990 72;
  • 20) 0.000 000 000 000 004 424 990 72 × 2 = 0 + 0.000 000 000 000 008 849 981 44;
  • 21) 0.000 000 000 000 008 849 981 44 × 2 = 0 + 0.000 000 000 000 017 699 962 88;
  • 22) 0.000 000 000 000 017 699 962 88 × 2 = 0 + 0.000 000 000 000 035 399 925 76;
  • 23) 0.000 000 000 000 035 399 925 76 × 2 = 0 + 0.000 000 000 000 070 799 851 52;
  • 24) 0.000 000 000 000 070 799 851 52 × 2 = 0 + 0.000 000 000 000 141 599 703 04;
  • 25) 0.000 000 000 000 141 599 703 04 × 2 = 0 + 0.000 000 000 000 283 199 406 08;
  • 26) 0.000 000 000 000 283 199 406 08 × 2 = 0 + 0.000 000 000 000 566 398 812 16;
  • 27) 0.000 000 000 000 566 398 812 16 × 2 = 0 + 0.000 000 000 001 132 797 624 32;
  • 28) 0.000 000 000 001 132 797 624 32 × 2 = 0 + 0.000 000 000 002 265 595 248 64;
  • 29) 0.000 000 000 002 265 595 248 64 × 2 = 0 + 0.000 000 000 004 531 190 497 28;
  • 30) 0.000 000 000 004 531 190 497 28 × 2 = 0 + 0.000 000 000 009 062 380 994 56;
  • 31) 0.000 000 000 009 062 380 994 56 × 2 = 0 + 0.000 000 000 018 124 761 989 12;
  • 32) 0.000 000 000 018 124 761 989 12 × 2 = 0 + 0.000 000 000 036 249 523 978 24;
  • 33) 0.000 000 000 036 249 523 978 24 × 2 = 0 + 0.000 000 000 072 499 047 956 48;
  • 34) 0.000 000 000 072 499 047 956 48 × 2 = 0 + 0.000 000 000 144 998 095 912 96;
  • 35) 0.000 000 000 144 998 095 912 96 × 2 = 0 + 0.000 000 000 289 996 191 825 92;
  • 36) 0.000 000 000 289 996 191 825 92 × 2 = 0 + 0.000 000 000 579 992 383 651 84;
  • 37) 0.000 000 000 579 992 383 651 84 × 2 = 0 + 0.000 000 001 159 984 767 303 68;
  • 38) 0.000 000 001 159 984 767 303 68 × 2 = 0 + 0.000 000 002 319 969 534 607 36;
  • 39) 0.000 000 002 319 969 534 607 36 × 2 = 0 + 0.000 000 004 639 939 069 214 72;
  • 40) 0.000 000 004 639 939 069 214 72 × 2 = 0 + 0.000 000 009 279 878 138 429 44;
  • 41) 0.000 000 009 279 878 138 429 44 × 2 = 0 + 0.000 000 018 559 756 276 858 88;
  • 42) 0.000 000 018 559 756 276 858 88 × 2 = 0 + 0.000 000 037 119 512 553 717 76;
  • 43) 0.000 000 037 119 512 553 717 76 × 2 = 0 + 0.000 000 074 239 025 107 435 52;
  • 44) 0.000 000 074 239 025 107 435 52 × 2 = 0 + 0.000 000 148 478 050 214 871 04;
  • 45) 0.000 000 148 478 050 214 871 04 × 2 = 0 + 0.000 000 296 956 100 429 742 08;
  • 46) 0.000 000 296 956 100 429 742 08 × 2 = 0 + 0.000 000 593 912 200 859 484 16;
  • 47) 0.000 000 593 912 200 859 484 16 × 2 = 0 + 0.000 001 187 824 401 718 968 32;
  • 48) 0.000 001 187 824 401 718 968 32 × 2 = 0 + 0.000 002 375 648 803 437 936 64;
  • 49) 0.000 002 375 648 803 437 936 64 × 2 = 0 + 0.000 004 751 297 606 875 873 28;
  • 50) 0.000 004 751 297 606 875 873 28 × 2 = 0 + 0.000 009 502 595 213 751 746 56;
  • 51) 0.000 009 502 595 213 751 746 56 × 2 = 0 + 0.000 019 005 190 427 503 493 12;
  • 52) 0.000 019 005 190 427 503 493 12 × 2 = 0 + 0.000 038 010 380 855 006 986 24;
  • 53) 0.000 038 010 380 855 006 986 24 × 2 = 0 + 0.000 076 020 761 710 013 972 48;
  • 54) 0.000 076 020 761 710 013 972 48 × 2 = 0 + 0.000 152 041 523 420 027 944 96;
  • 55) 0.000 152 041 523 420 027 944 96 × 2 = 0 + 0.000 304 083 046 840 055 889 92;
  • 56) 0.000 304 083 046 840 055 889 92 × 2 = 0 + 0.000 608 166 093 680 111 779 84;
  • 57) 0.000 608 166 093 680 111 779 84 × 2 = 0 + 0.001 216 332 187 360 223 559 68;
  • 58) 0.001 216 332 187 360 223 559 68 × 2 = 0 + 0.002 432 664 374 720 447 119 36;
  • 59) 0.002 432 664 374 720 447 119 36 × 2 = 0 + 0.004 865 328 749 440 894 238 72;
  • 60) 0.004 865 328 749 440 894 238 72 × 2 = 0 + 0.009 730 657 498 881 788 477 44;
  • 61) 0.009 730 657 498 881 788 477 44 × 2 = 0 + 0.019 461 314 997 763 576 954 88;
  • 62) 0.019 461 314 997 763 576 954 88 × 2 = 0 + 0.038 922 629 995 527 153 909 76;
  • 63) 0.038 922 629 995 527 153 909 76 × 2 = 0 + 0.077 845 259 991 054 307 819 52;
  • 64) 0.077 845 259 991 054 307 819 52 × 2 = 0 + 0.155 690 519 982 108 615 639 04;
  • 65) 0.155 690 519 982 108 615 639 04 × 2 = 0 + 0.311 381 039 964 217 231 278 08;
  • 66) 0.311 381 039 964 217 231 278 08 × 2 = 0 + 0.622 762 079 928 434 462 556 16;
  • 67) 0.622 762 079 928 434 462 556 16 × 2 = 1 + 0.245 524 159 856 868 925 112 32;
  • 68) 0.245 524 159 856 868 925 112 32 × 2 = 0 + 0.491 048 319 713 737 850 224 64;
  • 69) 0.491 048 319 713 737 850 224 64 × 2 = 0 + 0.982 096 639 427 475 700 449 28;
  • 70) 0.982 096 639 427 475 700 449 28 × 2 = 1 + 0.964 193 278 854 951 400 898 56;
  • 71) 0.964 193 278 854 951 400 898 56 × 2 = 1 + 0.928 386 557 709 902 801 797 12;
  • 72) 0.928 386 557 709 902 801 797 12 × 2 = 1 + 0.856 773 115 419 805 603 594 24;
  • 73) 0.856 773 115 419 805 603 594 24 × 2 = 1 + 0.713 546 230 839 611 207 188 48;
  • 74) 0.713 546 230 839 611 207 188 48 × 2 = 1 + 0.427 092 461 679 222 414 376 96;
  • 75) 0.427 092 461 679 222 414 376 96 × 2 = 0 + 0.854 184 923 358 444 828 753 92;
  • 76) 0.854 184 923 358 444 828 753 92 × 2 = 1 + 0.708 369 846 716 889 657 507 84;
  • 77) 0.708 369 846 716 889 657 507 84 × 2 = 1 + 0.416 739 693 433 779 315 015 68;
  • 78) 0.416 739 693 433 779 315 015 68 × 2 = 0 + 0.833 479 386 867 558 630 031 36;
  • 79) 0.833 479 386 867 558 630 031 36 × 2 = 1 + 0.666 958 773 735 117 260 062 72;
  • 80) 0.666 958 773 735 117 260 062 72 × 2 = 1 + 0.333 917 547 470 234 520 125 44;
  • 81) 0.333 917 547 470 234 520 125 44 × 2 = 0 + 0.667 835 094 940 469 040 250 88;
  • 82) 0.667 835 094 940 469 040 250 88 × 2 = 1 + 0.335 670 189 880 938 080 501 76;
  • 83) 0.335 670 189 880 938 080 501 76 × 2 = 0 + 0.671 340 379 761 876 161 003 52;
  • 84) 0.671 340 379 761 876 161 003 52 × 2 = 1 + 0.342 680 759 523 752 322 007 04;
  • 85) 0.342 680 759 523 752 322 007 04 × 2 = 0 + 0.685 361 519 047 504 644 014 08;
  • 86) 0.685 361 519 047 504 644 014 08 × 2 = 1 + 0.370 723 038 095 009 288 028 16;
  • 87) 0.370 723 038 095 009 288 028 16 × 2 = 0 + 0.741 446 076 190 018 576 056 32;
  • 88) 0.741 446 076 190 018 576 056 32 × 2 = 1 + 0.482 892 152 380 037 152 112 64;
  • 89) 0.482 892 152 380 037 152 112 64 × 2 = 0 + 0.965 784 304 760 074 304 225 28;
  • 90) 0.965 784 304 760 074 304 225 28 × 2 = 1 + 0.931 568 609 520 148 608 450 56;
  • 91) 0.931 568 609 520 148 608 450 56 × 2 = 1 + 0.863 137 219 040 297 216 901 12;
  • 92) 0.863 137 219 040 297 216 901 12 × 2 = 1 + 0.726 274 438 080 594 433 802 24;
  • 93) 0.726 274 438 080 594 433 802 24 × 2 = 1 + 0.452 548 876 161 188 867 604 48;
  • 94) 0.452 548 876 161 188 867 604 48 × 2 = 0 + 0.905 097 752 322 377 735 208 96;
  • 95) 0.905 097 752 322 377 735 208 96 × 2 = 1 + 0.810 195 504 644 755 470 417 92;
  • 96) 0.810 195 504 644 755 470 417 92 × 2 = 1 + 0.620 391 009 289 510 940 835 84;
  • 97) 0.620 391 009 289 510 940 835 84 × 2 = 1 + 0.240 782 018 579 021 881 671 68;
  • 98) 0.240 782 018 579 021 881 671 68 × 2 = 0 + 0.481 564 037 158 043 763 343 36;
  • 99) 0.481 564 037 158 043 763 343 36 × 2 = 0 + 0.963 128 074 316 087 526 686 72;
  • 100) 0.963 128 074 316 087 526 686 72 × 2 = 1 + 0.926 256 148 632 175 053 373 44;
  • 101) 0.926 256 148 632 175 053 373 44 × 2 = 1 + 0.852 512 297 264 350 106 746 88;
  • 102) 0.852 512 297 264 350 106 746 88 × 2 = 1 + 0.705 024 594 528 700 213 493 76;
  • 103) 0.705 024 594 528 700 213 493 76 × 2 = 1 + 0.410 049 189 057 400 426 987 52;
  • 104) 0.410 049 189 057 400 426 987 52 × 2 = 0 + 0.820 098 378 114 800 853 975 04;
  • 105) 0.820 098 378 114 800 853 975 04 × 2 = 1 + 0.640 196 756 229 601 707 950 08;
  • 106) 0.640 196 756 229 601 707 950 08 × 2 = 1 + 0.280 393 512 459 203 415 900 16;
  • 107) 0.280 393 512 459 203 415 900 16 × 2 = 0 + 0.560 787 024 918 406 831 800 32;
  • 108) 0.560 787 024 918 406 831 800 32 × 2 = 1 + 0.121 574 049 836 813 663 600 64;
  • 109) 0.121 574 049 836 813 663 600 64 × 2 = 0 + 0.243 148 099 673 627 327 201 28;
  • 110) 0.243 148 099 673 627 327 201 28 × 2 = 0 + 0.486 296 199 347 254 654 402 56;
  • 111) 0.486 296 199 347 254 654 402 56 × 2 = 0 + 0.972 592 398 694 509 308 805 12;
  • 112) 0.972 592 398 694 509 308 805 12 × 2 = 1 + 0.945 184 797 389 018 617 610 24;
  • 113) 0.945 184 797 389 018 617 610 24 × 2 = 1 + 0.890 369 594 778 037 235 220 48;
  • 114) 0.890 369 594 778 037 235 220 48 × 2 = 1 + 0.780 739 189 556 074 470 440 96;
  • 115) 0.780 739 189 556 074 470 440 96 × 2 = 1 + 0.561 478 379 112 148 940 881 92;
  • 116) 0.561 478 379 112 148 940 881 92 × 2 = 1 + 0.122 956 758 224 297 881 763 84;
  • 117) 0.122 956 758 224 297 881 763 84 × 2 = 0 + 0.245 913 516 448 595 763 527 68;
  • 118) 0.245 913 516 448 595 763 527 68 × 2 = 0 + 0.491 827 032 897 191 527 055 36;
  • 119) 0.491 827 032 897 191 527 055 36 × 2 = 0 + 0.983 654 065 794 383 054 110 72;

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 44(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 0111 1101 1011 0101 0101 0111 1011 1001 1110 1101 0001 1111 000(2)

5. Positive number before normalization:

0.000 000 000 000 000 000 008 44(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 0111 1101 1011 0101 0101 0111 1011 1001 1110 1101 0001 1111 000(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 44(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 0111 1101 1011 0101 0101 0111 1011 1001 1110 1101 0001 1111 000(2) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 0111 1101 1011 0101 0101 0111 1011 1001 1110 1101 0001 1111 000(2) × 20 =


1.0011 1110 1101 1010 1010 1011 1101 1100 1111 0110 1000 1111 1000(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.0011 1110 1101 1010 1010 1011 1101 1100 1111 0110 1000 1111 1000


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. 0011 1110 1101 1010 1010 1011 1101 1100 1111 0110 1000 1111 1000 =


0011 1110 1101 1010 1010 1011 1101 1100 1111 0110 1000 1111 1000


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) =
0011 1110 1101 1010 1010 1011 1101 1100 1111 0110 1000 1111 1000


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

0 - 011 1011 1100 - 0011 1110 1101 1010 1010 1011 1101 1100 1111 0110 1000 1111 1000


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