65 432 124 567 890 999 999 888 888 887 654 353.2 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 65 432 124 567 890 999 999 888 888 887 654 353.2(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
65 432 124 567 890 999 999 888 888 887 654 353.2(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: 65 432 124 567 890 999 999 888 888 887 654 353.
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;
  • 65 432 124 567 890 999 999 888 888 887 654 353 ÷ 2 = 32 716 062 283 945 499 999 944 444 443 827 176 + 1;
  • 32 716 062 283 945 499 999 944 444 443 827 176 ÷ 2 = 16 358 031 141 972 749 999 972 222 221 913 588 + 0;
  • 16 358 031 141 972 749 999 972 222 221 913 588 ÷ 2 = 8 179 015 570 986 374 999 986 111 110 956 794 + 0;
  • 8 179 015 570 986 374 999 986 111 110 956 794 ÷ 2 = 4 089 507 785 493 187 499 993 055 555 478 397 + 0;
  • 4 089 507 785 493 187 499 993 055 555 478 397 ÷ 2 = 2 044 753 892 746 593 749 996 527 777 739 198 + 1;
  • 2 044 753 892 746 593 749 996 527 777 739 198 ÷ 2 = 1 022 376 946 373 296 874 998 263 888 869 599 + 0;
  • 1 022 376 946 373 296 874 998 263 888 869 599 ÷ 2 = 511 188 473 186 648 437 499 131 944 434 799 + 1;
  • 511 188 473 186 648 437 499 131 944 434 799 ÷ 2 = 255 594 236 593 324 218 749 565 972 217 399 + 1;
  • 255 594 236 593 324 218 749 565 972 217 399 ÷ 2 = 127 797 118 296 662 109 374 782 986 108 699 + 1;
  • 127 797 118 296 662 109 374 782 986 108 699 ÷ 2 = 63 898 559 148 331 054 687 391 493 054 349 + 1;
  • 63 898 559 148 331 054 687 391 493 054 349 ÷ 2 = 31 949 279 574 165 527 343 695 746 527 174 + 1;
  • 31 949 279 574 165 527 343 695 746 527 174 ÷ 2 = 15 974 639 787 082 763 671 847 873 263 587 + 0;
  • 15 974 639 787 082 763 671 847 873 263 587 ÷ 2 = 7 987 319 893 541 381 835 923 936 631 793 + 1;
  • 7 987 319 893 541 381 835 923 936 631 793 ÷ 2 = 3 993 659 946 770 690 917 961 968 315 896 + 1;
  • 3 993 659 946 770 690 917 961 968 315 896 ÷ 2 = 1 996 829 973 385 345 458 980 984 157 948 + 0;
  • 1 996 829 973 385 345 458 980 984 157 948 ÷ 2 = 998 414 986 692 672 729 490 492 078 974 + 0;
  • 998 414 986 692 672 729 490 492 078 974 ÷ 2 = 499 207 493 346 336 364 745 246 039 487 + 0;
  • 499 207 493 346 336 364 745 246 039 487 ÷ 2 = 249 603 746 673 168 182 372 623 019 743 + 1;
  • 249 603 746 673 168 182 372 623 019 743 ÷ 2 = 124 801 873 336 584 091 186 311 509 871 + 1;
  • 124 801 873 336 584 091 186 311 509 871 ÷ 2 = 62 400 936 668 292 045 593 155 754 935 + 1;
  • 62 400 936 668 292 045 593 155 754 935 ÷ 2 = 31 200 468 334 146 022 796 577 877 467 + 1;
  • 31 200 468 334 146 022 796 577 877 467 ÷ 2 = 15 600 234 167 073 011 398 288 938 733 + 1;
  • 15 600 234 167 073 011 398 288 938 733 ÷ 2 = 7 800 117 083 536 505 699 144 469 366 + 1;
  • 7 800 117 083 536 505 699 144 469 366 ÷ 2 = 3 900 058 541 768 252 849 572 234 683 + 0;
  • 3 900 058 541 768 252 849 572 234 683 ÷ 2 = 1 950 029 270 884 126 424 786 117 341 + 1;
  • 1 950 029 270 884 126 424 786 117 341 ÷ 2 = 975 014 635 442 063 212 393 058 670 + 1;
  • 975 014 635 442 063 212 393 058 670 ÷ 2 = 487 507 317 721 031 606 196 529 335 + 0;
  • 487 507 317 721 031 606 196 529 335 ÷ 2 = 243 753 658 860 515 803 098 264 667 + 1;
  • 243 753 658 860 515 803 098 264 667 ÷ 2 = 121 876 829 430 257 901 549 132 333 + 1;
  • 121 876 829 430 257 901 549 132 333 ÷ 2 = 60 938 414 715 128 950 774 566 166 + 1;
  • 60 938 414 715 128 950 774 566 166 ÷ 2 = 30 469 207 357 564 475 387 283 083 + 0;
  • 30 469 207 357 564 475 387 283 083 ÷ 2 = 15 234 603 678 782 237 693 641 541 + 1;
  • 15 234 603 678 782 237 693 641 541 ÷ 2 = 7 617 301 839 391 118 846 820 770 + 1;
  • 7 617 301 839 391 118 846 820 770 ÷ 2 = 3 808 650 919 695 559 423 410 385 + 0;
  • 3 808 650 919 695 559 423 410 385 ÷ 2 = 1 904 325 459 847 779 711 705 192 + 1;
  • 1 904 325 459 847 779 711 705 192 ÷ 2 = 952 162 729 923 889 855 852 596 + 0;
  • 952 162 729 923 889 855 852 596 ÷ 2 = 476 081 364 961 944 927 926 298 + 0;
  • 476 081 364 961 944 927 926 298 ÷ 2 = 238 040 682 480 972 463 963 149 + 0;
  • 238 040 682 480 972 463 963 149 ÷ 2 = 119 020 341 240 486 231 981 574 + 1;
  • 119 020 341 240 486 231 981 574 ÷ 2 = 59 510 170 620 243 115 990 787 + 0;
  • 59 510 170 620 243 115 990 787 ÷ 2 = 29 755 085 310 121 557 995 393 + 1;
  • 29 755 085 310 121 557 995 393 ÷ 2 = 14 877 542 655 060 778 997 696 + 1;
  • 14 877 542 655 060 778 997 696 ÷ 2 = 7 438 771 327 530 389 498 848 + 0;
  • 7 438 771 327 530 389 498 848 ÷ 2 = 3 719 385 663 765 194 749 424 + 0;
  • 3 719 385 663 765 194 749 424 ÷ 2 = 1 859 692 831 882 597 374 712 + 0;
  • 1 859 692 831 882 597 374 712 ÷ 2 = 929 846 415 941 298 687 356 + 0;
  • 929 846 415 941 298 687 356 ÷ 2 = 464 923 207 970 649 343 678 + 0;
  • 464 923 207 970 649 343 678 ÷ 2 = 232 461 603 985 324 671 839 + 0;
  • 232 461 603 985 324 671 839 ÷ 2 = 116 230 801 992 662 335 919 + 1;
  • 116 230 801 992 662 335 919 ÷ 2 = 58 115 400 996 331 167 959 + 1;
  • 58 115 400 996 331 167 959 ÷ 2 = 29 057 700 498 165 583 979 + 1;
  • 29 057 700 498 165 583 979 ÷ 2 = 14 528 850 249 082 791 989 + 1;
  • 14 528 850 249 082 791 989 ÷ 2 = 7 264 425 124 541 395 994 + 1;
  • 7 264 425 124 541 395 994 ÷ 2 = 3 632 212 562 270 697 997 + 0;
  • 3 632 212 562 270 697 997 ÷ 2 = 1 816 106 281 135 348 998 + 1;
  • 1 816 106 281 135 348 998 ÷ 2 = 908 053 140 567 674 499 + 0;
  • 908 053 140 567 674 499 ÷ 2 = 454 026 570 283 837 249 + 1;
  • 454 026 570 283 837 249 ÷ 2 = 227 013 285 141 918 624 + 1;
  • 227 013 285 141 918 624 ÷ 2 = 113 506 642 570 959 312 + 0;
  • 113 506 642 570 959 312 ÷ 2 = 56 753 321 285 479 656 + 0;
  • 56 753 321 285 479 656 ÷ 2 = 28 376 660 642 739 828 + 0;
  • 28 376 660 642 739 828 ÷ 2 = 14 188 330 321 369 914 + 0;
  • 14 188 330 321 369 914 ÷ 2 = 7 094 165 160 684 957 + 0;
  • 7 094 165 160 684 957 ÷ 2 = 3 547 082 580 342 478 + 1;
  • 3 547 082 580 342 478 ÷ 2 = 1 773 541 290 171 239 + 0;
  • 1 773 541 290 171 239 ÷ 2 = 886 770 645 085 619 + 1;
  • 886 770 645 085 619 ÷ 2 = 443 385 322 542 809 + 1;
  • 443 385 322 542 809 ÷ 2 = 221 692 661 271 404 + 1;
  • 221 692 661 271 404 ÷ 2 = 110 846 330 635 702 + 0;
  • 110 846 330 635 702 ÷ 2 = 55 423 165 317 851 + 0;
  • 55 423 165 317 851 ÷ 2 = 27 711 582 658 925 + 1;
  • 27 711 582 658 925 ÷ 2 = 13 855 791 329 462 + 1;
  • 13 855 791 329 462 ÷ 2 = 6 927 895 664 731 + 0;
  • 6 927 895 664 731 ÷ 2 = 3 463 947 832 365 + 1;
  • 3 463 947 832 365 ÷ 2 = 1 731 973 916 182 + 1;
  • 1 731 973 916 182 ÷ 2 = 865 986 958 091 + 0;
  • 865 986 958 091 ÷ 2 = 432 993 479 045 + 1;
  • 432 993 479 045 ÷ 2 = 216 496 739 522 + 1;
  • 216 496 739 522 ÷ 2 = 108 248 369 761 + 0;
  • 108 248 369 761 ÷ 2 = 54 124 184 880 + 1;
  • 54 124 184 880 ÷ 2 = 27 062 092 440 + 0;
  • 27 062 092 440 ÷ 2 = 13 531 046 220 + 0;
  • 13 531 046 220 ÷ 2 = 6 765 523 110 + 0;
  • 6 765 523 110 ÷ 2 = 3 382 761 555 + 0;
  • 3 382 761 555 ÷ 2 = 1 691 380 777 + 1;
  • 1 691 380 777 ÷ 2 = 845 690 388 + 1;
  • 845 690 388 ÷ 2 = 422 845 194 + 0;
  • 422 845 194 ÷ 2 = 211 422 597 + 0;
  • 211 422 597 ÷ 2 = 105 711 298 + 1;
  • 105 711 298 ÷ 2 = 52 855 649 + 0;
  • 52 855 649 ÷ 2 = 26 427 824 + 1;
  • 26 427 824 ÷ 2 = 13 213 912 + 0;
  • 13 213 912 ÷ 2 = 6 606 956 + 0;
  • 6 606 956 ÷ 2 = 3 303 478 + 0;
  • 3 303 478 ÷ 2 = 1 651 739 + 0;
  • 1 651 739 ÷ 2 = 825 869 + 1;
  • 825 869 ÷ 2 = 412 934 + 1;
  • 412 934 ÷ 2 = 206 467 + 0;
  • 206 467 ÷ 2 = 103 233 + 1;
  • 103 233 ÷ 2 = 51 616 + 1;
  • 51 616 ÷ 2 = 25 808 + 0;
  • 25 808 ÷ 2 = 12 904 + 0;
  • 12 904 ÷ 2 = 6 452 + 0;
  • 6 452 ÷ 2 = 3 226 + 0;
  • 3 226 ÷ 2 = 1 613 + 0;
  • 1 613 ÷ 2 = 806 + 1;
  • 806 ÷ 2 = 403 + 0;
  • 403 ÷ 2 = 201 + 1;
  • 201 ÷ 2 = 100 + 1;
  • 100 ÷ 2 = 50 + 0;
  • 50 ÷ 2 = 25 + 0;
  • 25 ÷ 2 = 12 + 1;
  • 12 ÷ 2 = 6 + 0;
  • 6 ÷ 2 = 3 + 0;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

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.

65 432 124 567 890 999 999 888 888 887 654 353(10) =


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


3. Convert to binary (base 2) the fractional part: 0.2.

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.2 × 2 = 0 + 0.4;
  • 2) 0.4 × 2 = 0 + 0.8;
  • 3) 0.8 × 2 = 1 + 0.6;
  • 4) 0.6 × 2 = 1 + 0.2;
  • 5) 0.2 × 2 = 0 + 0.4;
  • 6) 0.4 × 2 = 0 + 0.8;
  • 7) 0.8 × 2 = 1 + 0.6;
  • 8) 0.6 × 2 = 1 + 0.2;
  • 9) 0.2 × 2 = 0 + 0.4;
  • 10) 0.4 × 2 = 0 + 0.8;
  • 11) 0.8 × 2 = 1 + 0.6;
  • 12) 0.6 × 2 = 1 + 0.2;
  • 13) 0.2 × 2 = 0 + 0.4;
  • 14) 0.4 × 2 = 0 + 0.8;
  • 15) 0.8 × 2 = 1 + 0.6;
  • 16) 0.6 × 2 = 1 + 0.2;
  • 17) 0.2 × 2 = 0 + 0.4;
  • 18) 0.4 × 2 = 0 + 0.8;
  • 19) 0.8 × 2 = 1 + 0.6;
  • 20) 0.6 × 2 = 1 + 0.2;
  • 21) 0.2 × 2 = 0 + 0.4;
  • 22) 0.4 × 2 = 0 + 0.8;
  • 23) 0.8 × 2 = 1 + 0.6;
  • 24) 0.6 × 2 = 1 + 0.2;
  • 25) 0.2 × 2 = 0 + 0.4;
  • 26) 0.4 × 2 = 0 + 0.8;
  • 27) 0.8 × 2 = 1 + 0.6;
  • 28) 0.6 × 2 = 1 + 0.2;
  • 29) 0.2 × 2 = 0 + 0.4;
  • 30) 0.4 × 2 = 0 + 0.8;
  • 31) 0.8 × 2 = 1 + 0.6;
  • 32) 0.6 × 2 = 1 + 0.2;
  • 33) 0.2 × 2 = 0 + 0.4;
  • 34) 0.4 × 2 = 0 + 0.8;
  • 35) 0.8 × 2 = 1 + 0.6;
  • 36) 0.6 × 2 = 1 + 0.2;
  • 37) 0.2 × 2 = 0 + 0.4;
  • 38) 0.4 × 2 = 0 + 0.8;
  • 39) 0.8 × 2 = 1 + 0.6;
  • 40) 0.6 × 2 = 1 + 0.2;
  • 41) 0.2 × 2 = 0 + 0.4;
  • 42) 0.4 × 2 = 0 + 0.8;
  • 43) 0.8 × 2 = 1 + 0.6;
  • 44) 0.6 × 2 = 1 + 0.2;
  • 45) 0.2 × 2 = 0 + 0.4;
  • 46) 0.4 × 2 = 0 + 0.8;
  • 47) 0.8 × 2 = 1 + 0.6;
  • 48) 0.6 × 2 = 1 + 0.2;
  • 49) 0.2 × 2 = 0 + 0.4;
  • 50) 0.4 × 2 = 0 + 0.8;
  • 51) 0.8 × 2 = 1 + 0.6;
  • 52) 0.6 × 2 = 1 + 0.2;
  • 53) 0.2 × 2 = 0 + 0.4;

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


0.0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0(2)

5. Positive number before normalization:

65 432 124 567 890 999 999 888 888 887 654 353.2(10) =


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

6. Normalize the binary representation of the number.

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


65 432 124 567 890 999 999 888 888 887 654 353.2(10) =


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


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


1.1001 0011 0100 0001 1011 0000 1010 0110 0001 0110 1101 1001 1101 0000 0110 1011 1110 0000 0110 1000 1011 0111 0110 1111 1100 0110 1111 1010 0010 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110(2) × 2115


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): 115


Mantissa (not normalized):
1.1001 0011 0100 0001 1011 0000 1010 0110 0001 0110 1101 1001 1101 0000 0110 1011 1110 0000 0110 1000 1011 0111 0110 1111 1100 0110 1111 1010 0010 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110


8. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


115 + 2(11-1) - 1 =


(115 + 1 023)(10) =


1 138(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;
  • 1 138 ÷ 2 = 569 + 0;
  • 569 ÷ 2 = 284 + 1;
  • 284 ÷ 2 = 142 + 0;
  • 142 ÷ 2 = 71 + 0;
  • 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;

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) =


1138(10) =


100 0111 0010(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, 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. 1001 0011 0100 0001 1011 0000 1010 0110 0001 0110 1101 1001 1101 0000 0110 1011 1110 0000 0110 1000 1011 0111 0110 1111 1100 0110 1111 1010 0010 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 =


1001 0011 0100 0001 1011 0000 1010 0110 0001 0110 1101 1001 1101


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) =
100 0111 0010


Mantissa (52 bits) =
1001 0011 0100 0001 1011 0000 1010 0110 0001 0110 1101 1001 1101


Decimal number 65 432 124 567 890 999 999 888 888 887 654 353.2 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 0111 0010 - 1001 0011 0100 0001 1011 0000 1010 0110 0001 0110 1101 1001 1101


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