-192 711 999 999 999 999 999 999 999 999 999 999 377 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal -192 711 999 999 999 999 999 999 999 999 999 999 377(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
-192 711 999 999 999 999 999 999 999 999 999 999 377(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. Start with the positive version of the number:

|-192 711 999 999 999 999 999 999 999 999 999 999 377| = 192 711 999 999 999 999 999 999 999 999 999 999 377


2. 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;
  • 192 711 999 999 999 999 999 999 999 999 999 999 377 ÷ 2 = 96 355 999 999 999 999 999 999 999 999 999 999 688 + 1;
  • 96 355 999 999 999 999 999 999 999 999 999 999 688 ÷ 2 = 48 177 999 999 999 999 999 999 999 999 999 999 844 + 0;
  • 48 177 999 999 999 999 999 999 999 999 999 999 844 ÷ 2 = 24 088 999 999 999 999 999 999 999 999 999 999 922 + 0;
  • 24 088 999 999 999 999 999 999 999 999 999 999 922 ÷ 2 = 12 044 499 999 999 999 999 999 999 999 999 999 961 + 0;
  • 12 044 499 999 999 999 999 999 999 999 999 999 961 ÷ 2 = 6 022 249 999 999 999 999 999 999 999 999 999 980 + 1;
  • 6 022 249 999 999 999 999 999 999 999 999 999 980 ÷ 2 = 3 011 124 999 999 999 999 999 999 999 999 999 990 + 0;
  • 3 011 124 999 999 999 999 999 999 999 999 999 990 ÷ 2 = 1 505 562 499 999 999 999 999 999 999 999 999 995 + 0;
  • 1 505 562 499 999 999 999 999 999 999 999 999 995 ÷ 2 = 752 781 249 999 999 999 999 999 999 999 999 997 + 1;
  • 752 781 249 999 999 999 999 999 999 999 999 997 ÷ 2 = 376 390 624 999 999 999 999 999 999 999 999 998 + 1;
  • 376 390 624 999 999 999 999 999 999 999 999 998 ÷ 2 = 188 195 312 499 999 999 999 999 999 999 999 999 + 0;
  • 188 195 312 499 999 999 999 999 999 999 999 999 ÷ 2 = 94 097 656 249 999 999 999 999 999 999 999 999 + 1;
  • 94 097 656 249 999 999 999 999 999 999 999 999 ÷ 2 = 47 048 828 124 999 999 999 999 999 999 999 999 + 1;
  • 47 048 828 124 999 999 999 999 999 999 999 999 ÷ 2 = 23 524 414 062 499 999 999 999 999 999 999 999 + 1;
  • 23 524 414 062 499 999 999 999 999 999 999 999 ÷ 2 = 11 762 207 031 249 999 999 999 999 999 999 999 + 1;
  • 11 762 207 031 249 999 999 999 999 999 999 999 ÷ 2 = 5 881 103 515 624 999 999 999 999 999 999 999 + 1;
  • 5 881 103 515 624 999 999 999 999 999 999 999 ÷ 2 = 2 940 551 757 812 499 999 999 999 999 999 999 + 1;
  • 2 940 551 757 812 499 999 999 999 999 999 999 ÷ 2 = 1 470 275 878 906 249 999 999 999 999 999 999 + 1;
  • 1 470 275 878 906 249 999 999 999 999 999 999 ÷ 2 = 735 137 939 453 124 999 999 999 999 999 999 + 1;
  • 735 137 939 453 124 999 999 999 999 999 999 ÷ 2 = 367 568 969 726 562 499 999 999 999 999 999 + 1;
  • 367 568 969 726 562 499 999 999 999 999 999 ÷ 2 = 183 784 484 863 281 249 999 999 999 999 999 + 1;
  • 183 784 484 863 281 249 999 999 999 999 999 ÷ 2 = 91 892 242 431 640 624 999 999 999 999 999 + 1;
  • 91 892 242 431 640 624 999 999 999 999 999 ÷ 2 = 45 946 121 215 820 312 499 999 999 999 999 + 1;
  • 45 946 121 215 820 312 499 999 999 999 999 ÷ 2 = 22 973 060 607 910 156 249 999 999 999 999 + 1;
  • 22 973 060 607 910 156 249 999 999 999 999 ÷ 2 = 11 486 530 303 955 078 124 999 999 999 999 + 1;
  • 11 486 530 303 955 078 124 999 999 999 999 ÷ 2 = 5 743 265 151 977 539 062 499 999 999 999 + 1;
  • 5 743 265 151 977 539 062 499 999 999 999 ÷ 2 = 2 871 632 575 988 769 531 249 999 999 999 + 1;
  • 2 871 632 575 988 769 531 249 999 999 999 ÷ 2 = 1 435 816 287 994 384 765 624 999 999 999 + 1;
  • 1 435 816 287 994 384 765 624 999 999 999 ÷ 2 = 717 908 143 997 192 382 812 499 999 999 + 1;
  • 717 908 143 997 192 382 812 499 999 999 ÷ 2 = 358 954 071 998 596 191 406 249 999 999 + 1;
  • 358 954 071 998 596 191 406 249 999 999 ÷ 2 = 179 477 035 999 298 095 703 124 999 999 + 1;
  • 179 477 035 999 298 095 703 124 999 999 ÷ 2 = 89 738 517 999 649 047 851 562 499 999 + 1;
  • 89 738 517 999 649 047 851 562 499 999 ÷ 2 = 44 869 258 999 824 523 925 781 249 999 + 1;
  • 44 869 258 999 824 523 925 781 249 999 ÷ 2 = 22 434 629 499 912 261 962 890 624 999 + 1;
  • 22 434 629 499 912 261 962 890 624 999 ÷ 2 = 11 217 314 749 956 130 981 445 312 499 + 1;
  • 11 217 314 749 956 130 981 445 312 499 ÷ 2 = 5 608 657 374 978 065 490 722 656 249 + 1;
  • 5 608 657 374 978 065 490 722 656 249 ÷ 2 = 2 804 328 687 489 032 745 361 328 124 + 1;
  • 2 804 328 687 489 032 745 361 328 124 ÷ 2 = 1 402 164 343 744 516 372 680 664 062 + 0;
  • 1 402 164 343 744 516 372 680 664 062 ÷ 2 = 701 082 171 872 258 186 340 332 031 + 0;
  • 701 082 171 872 258 186 340 332 031 ÷ 2 = 350 541 085 936 129 093 170 166 015 + 1;
  • 350 541 085 936 129 093 170 166 015 ÷ 2 = 175 270 542 968 064 546 585 083 007 + 1;
  • 175 270 542 968 064 546 585 083 007 ÷ 2 = 87 635 271 484 032 273 292 541 503 + 1;
  • 87 635 271 484 032 273 292 541 503 ÷ 2 = 43 817 635 742 016 136 646 270 751 + 1;
  • 43 817 635 742 016 136 646 270 751 ÷ 2 = 21 908 817 871 008 068 323 135 375 + 1;
  • 21 908 817 871 008 068 323 135 375 ÷ 2 = 10 954 408 935 504 034 161 567 687 + 1;
  • 10 954 408 935 504 034 161 567 687 ÷ 2 = 5 477 204 467 752 017 080 783 843 + 1;
  • 5 477 204 467 752 017 080 783 843 ÷ 2 = 2 738 602 233 876 008 540 391 921 + 1;
  • 2 738 602 233 876 008 540 391 921 ÷ 2 = 1 369 301 116 938 004 270 195 960 + 1;
  • 1 369 301 116 938 004 270 195 960 ÷ 2 = 684 650 558 469 002 135 097 980 + 0;
  • 684 650 558 469 002 135 097 980 ÷ 2 = 342 325 279 234 501 067 548 990 + 0;
  • 342 325 279 234 501 067 548 990 ÷ 2 = 171 162 639 617 250 533 774 495 + 0;
  • 171 162 639 617 250 533 774 495 ÷ 2 = 85 581 319 808 625 266 887 247 + 1;
  • 85 581 319 808 625 266 887 247 ÷ 2 = 42 790 659 904 312 633 443 623 + 1;
  • 42 790 659 904 312 633 443 623 ÷ 2 = 21 395 329 952 156 316 721 811 + 1;
  • 21 395 329 952 156 316 721 811 ÷ 2 = 10 697 664 976 078 158 360 905 + 1;
  • 10 697 664 976 078 158 360 905 ÷ 2 = 5 348 832 488 039 079 180 452 + 1;
  • 5 348 832 488 039 079 180 452 ÷ 2 = 2 674 416 244 019 539 590 226 + 0;
  • 2 674 416 244 019 539 590 226 ÷ 2 = 1 337 208 122 009 769 795 113 + 0;
  • 1 337 208 122 009 769 795 113 ÷ 2 = 668 604 061 004 884 897 556 + 1;
  • 668 604 061 004 884 897 556 ÷ 2 = 334 302 030 502 442 448 778 + 0;
  • 334 302 030 502 442 448 778 ÷ 2 = 167 151 015 251 221 224 389 + 0;
  • 167 151 015 251 221 224 389 ÷ 2 = 83 575 507 625 610 612 194 + 1;
  • 83 575 507 625 610 612 194 ÷ 2 = 41 787 753 812 805 306 097 + 0;
  • 41 787 753 812 805 306 097 ÷ 2 = 20 893 876 906 402 653 048 + 1;
  • 20 893 876 906 402 653 048 ÷ 2 = 10 446 938 453 201 326 524 + 0;
  • 10 446 938 453 201 326 524 ÷ 2 = 5 223 469 226 600 663 262 + 0;
  • 5 223 469 226 600 663 262 ÷ 2 = 2 611 734 613 300 331 631 + 0;
  • 2 611 734 613 300 331 631 ÷ 2 = 1 305 867 306 650 165 815 + 1;
  • 1 305 867 306 650 165 815 ÷ 2 = 652 933 653 325 082 907 + 1;
  • 652 933 653 325 082 907 ÷ 2 = 326 466 826 662 541 453 + 1;
  • 326 466 826 662 541 453 ÷ 2 = 163 233 413 331 270 726 + 1;
  • 163 233 413 331 270 726 ÷ 2 = 81 616 706 665 635 363 + 0;
  • 81 616 706 665 635 363 ÷ 2 = 40 808 353 332 817 681 + 1;
  • 40 808 353 332 817 681 ÷ 2 = 20 404 176 666 408 840 + 1;
  • 20 404 176 666 408 840 ÷ 2 = 10 202 088 333 204 420 + 0;
  • 10 202 088 333 204 420 ÷ 2 = 5 101 044 166 602 210 + 0;
  • 5 101 044 166 602 210 ÷ 2 = 2 550 522 083 301 105 + 0;
  • 2 550 522 083 301 105 ÷ 2 = 1 275 261 041 650 552 + 1;
  • 1 275 261 041 650 552 ÷ 2 = 637 630 520 825 276 + 0;
  • 637 630 520 825 276 ÷ 2 = 318 815 260 412 638 + 0;
  • 318 815 260 412 638 ÷ 2 = 159 407 630 206 319 + 0;
  • 159 407 630 206 319 ÷ 2 = 79 703 815 103 159 + 1;
  • 79 703 815 103 159 ÷ 2 = 39 851 907 551 579 + 1;
  • 39 851 907 551 579 ÷ 2 = 19 925 953 775 789 + 1;
  • 19 925 953 775 789 ÷ 2 = 9 962 976 887 894 + 1;
  • 9 962 976 887 894 ÷ 2 = 4 981 488 443 947 + 0;
  • 4 981 488 443 947 ÷ 2 = 2 490 744 221 973 + 1;
  • 2 490 744 221 973 ÷ 2 = 1 245 372 110 986 + 1;
  • 1 245 372 110 986 ÷ 2 = 622 686 055 493 + 0;
  • 622 686 055 493 ÷ 2 = 311 343 027 746 + 1;
  • 311 343 027 746 ÷ 2 = 155 671 513 873 + 0;
  • 155 671 513 873 ÷ 2 = 77 835 756 936 + 1;
  • 77 835 756 936 ÷ 2 = 38 917 878 468 + 0;
  • 38 917 878 468 ÷ 2 = 19 458 939 234 + 0;
  • 19 458 939 234 ÷ 2 = 9 729 469 617 + 0;
  • 9 729 469 617 ÷ 2 = 4 864 734 808 + 1;
  • 4 864 734 808 ÷ 2 = 2 432 367 404 + 0;
  • 2 432 367 404 ÷ 2 = 1 216 183 702 + 0;
  • 1 216 183 702 ÷ 2 = 608 091 851 + 0;
  • 608 091 851 ÷ 2 = 304 045 925 + 1;
  • 304 045 925 ÷ 2 = 152 022 962 + 1;
  • 152 022 962 ÷ 2 = 76 011 481 + 0;
  • 76 011 481 ÷ 2 = 38 005 740 + 1;
  • 38 005 740 ÷ 2 = 19 002 870 + 0;
  • 19 002 870 ÷ 2 = 9 501 435 + 0;
  • 9 501 435 ÷ 2 = 4 750 717 + 1;
  • 4 750 717 ÷ 2 = 2 375 358 + 1;
  • 2 375 358 ÷ 2 = 1 187 679 + 0;
  • 1 187 679 ÷ 2 = 593 839 + 1;
  • 593 839 ÷ 2 = 296 919 + 1;
  • 296 919 ÷ 2 = 148 459 + 1;
  • 148 459 ÷ 2 = 74 229 + 1;
  • 74 229 ÷ 2 = 37 114 + 1;
  • 37 114 ÷ 2 = 18 557 + 0;
  • 18 557 ÷ 2 = 9 278 + 1;
  • 9 278 ÷ 2 = 4 639 + 0;
  • 4 639 ÷ 2 = 2 319 + 1;
  • 2 319 ÷ 2 = 1 159 + 1;
  • 1 159 ÷ 2 = 579 + 1;
  • 579 ÷ 2 = 289 + 1;
  • 289 ÷ 2 = 144 + 1;
  • 144 ÷ 2 = 72 + 0;
  • 72 ÷ 2 = 36 + 0;
  • 36 ÷ 2 = 18 + 0;
  • 18 ÷ 2 = 9 + 0;
  • 9 ÷ 2 = 4 + 1;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

3. Construct the base 2 representation of the positive number.

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

192 711 999 999 999 999 999 999 999 999 999 999 377(10) =


1001 0000 1111 1010 1111 1011 0010 1100 0100 0101 0110 1111 0001 0001 1011 1100 0101 0010 0111 1100 0111 1111 1100 1111 1111 1111 1111 1111 1111 1101 1001 0001(2)


4. Normalize the binary representation of the number.

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


192 711 999 999 999 999 999 999 999 999 999 999 377(10) =


1001 0000 1111 1010 1111 1011 0010 1100 0100 0101 0110 1111 0001 0001 1011 1100 0101 0010 0111 1100 0111 1111 1100 1111 1111 1111 1111 1111 1111 1101 1001 0001(2) =


1001 0000 1111 1010 1111 1011 0010 1100 0100 0101 0110 1111 0001 0001 1011 1100 0101 0010 0111 1100 0111 1111 1100 1111 1111 1111 1111 1111 1111 1101 1001 0001(2) × 20 =


1.0010 0001 1111 0101 1111 0110 0101 1000 1000 1010 1101 1110 0010 0011 0111 1000 1010 0100 1111 1000 1111 1111 1001 1111 1111 1111 1111 1111 1111 1011 0010 001(2) × 2127


5. 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): 127


Mantissa (not normalized):
1.0010 0001 1111 0101 1111 0110 0101 1000 1000 1010 1101 1110 0010 0011 0111 1000 1010 0100 1111 1000 1111 1111 1001 1111 1111 1111 1111 1111 1111 1011 0010 001


6. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


127 + 2(11-1) - 1 =


(127 + 1 023)(10) =


1 150(10)


7. 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 150 ÷ 2 = 575 + 0;
  • 575 ÷ 2 = 287 + 1;
  • 287 ÷ 2 = 143 + 1;
  • 143 ÷ 2 = 71 + 1;
  • 71 ÷ 2 = 35 + 1;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

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

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


Exponent (adjusted) =


1150(10) =


100 0111 1110(2)


9. 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. 0010 0001 1111 0101 1111 0110 0101 1000 1000 1010 1101 1110 0010 001 1011 1100 0101 0010 0111 1100 0111 1111 1100 1111 1111 1111 1111 1111 1111 1101 1001 0001 =


0010 0001 1111 0101 1111 0110 0101 1000 1000 1010 1101 1110 0010


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

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


Exponent (11 bits) =
100 0111 1110


Mantissa (52 bits) =
0010 0001 1111 0101 1111 0110 0101 1000 1000 1010 1101 1110 0010


Decimal number -192 711 999 999 999 999 999 999 999 999 999 999 377 converted to 64 bit double precision IEEE 754 binary floating point representation:

1 - 100 0111 1110 - 0010 0001 1111 0101 1111 0110 0101 1000 1000 1010 1101 1110 0010

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