10 010 009 999 999 999 999 999 999 999 999 999 999 507 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 010 009 999 999 999 999 999 999 999 999 999 999 507(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
10 010 009 999 999 999 999 999 999 999 999 999 999 507(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;
  • 10 010 009 999 999 999 999 999 999 999 999 999 999 507 ÷ 2 = 5 005 004 999 999 999 999 999 999 999 999 999 999 753 + 1;
  • 5 005 004 999 999 999 999 999 999 999 999 999 999 753 ÷ 2 = 2 502 502 499 999 999 999 999 999 999 999 999 999 876 + 1;
  • 2 502 502 499 999 999 999 999 999 999 999 999 999 876 ÷ 2 = 1 251 251 249 999 999 999 999 999 999 999 999 999 938 + 0;
  • 1 251 251 249 999 999 999 999 999 999 999 999 999 938 ÷ 2 = 625 625 624 999 999 999 999 999 999 999 999 999 969 + 0;
  • 625 625 624 999 999 999 999 999 999 999 999 999 969 ÷ 2 = 312 812 812 499 999 999 999 999 999 999 999 999 984 + 1;
  • 312 812 812 499 999 999 999 999 999 999 999 999 984 ÷ 2 = 156 406 406 249 999 999 999 999 999 999 999 999 992 + 0;
  • 156 406 406 249 999 999 999 999 999 999 999 999 992 ÷ 2 = 78 203 203 124 999 999 999 999 999 999 999 999 996 + 0;
  • 78 203 203 124 999 999 999 999 999 999 999 999 996 ÷ 2 = 39 101 601 562 499 999 999 999 999 999 999 999 998 + 0;
  • 39 101 601 562 499 999 999 999 999 999 999 999 998 ÷ 2 = 19 550 800 781 249 999 999 999 999 999 999 999 999 + 0;
  • 19 550 800 781 249 999 999 999 999 999 999 999 999 ÷ 2 = 9 775 400 390 624 999 999 999 999 999 999 999 999 + 1;
  • 9 775 400 390 624 999 999 999 999 999 999 999 999 ÷ 2 = 4 887 700 195 312 499 999 999 999 999 999 999 999 + 1;
  • 4 887 700 195 312 499 999 999 999 999 999 999 999 ÷ 2 = 2 443 850 097 656 249 999 999 999 999 999 999 999 + 1;
  • 2 443 850 097 656 249 999 999 999 999 999 999 999 ÷ 2 = 1 221 925 048 828 124 999 999 999 999 999 999 999 + 1;
  • 1 221 925 048 828 124 999 999 999 999 999 999 999 ÷ 2 = 610 962 524 414 062 499 999 999 999 999 999 999 + 1;
  • 610 962 524 414 062 499 999 999 999 999 999 999 ÷ 2 = 305 481 262 207 031 249 999 999 999 999 999 999 + 1;
  • 305 481 262 207 031 249 999 999 999 999 999 999 ÷ 2 = 152 740 631 103 515 624 999 999 999 999 999 999 + 1;
  • 152 740 631 103 515 624 999 999 999 999 999 999 ÷ 2 = 76 370 315 551 757 812 499 999 999 999 999 999 + 1;
  • 76 370 315 551 757 812 499 999 999 999 999 999 ÷ 2 = 38 185 157 775 878 906 249 999 999 999 999 999 + 1;
  • 38 185 157 775 878 906 249 999 999 999 999 999 ÷ 2 = 19 092 578 887 939 453 124 999 999 999 999 999 + 1;
  • 19 092 578 887 939 453 124 999 999 999 999 999 ÷ 2 = 9 546 289 443 969 726 562 499 999 999 999 999 + 1;
  • 9 546 289 443 969 726 562 499 999 999 999 999 ÷ 2 = 4 773 144 721 984 863 281 249 999 999 999 999 + 1;
  • 4 773 144 721 984 863 281 249 999 999 999 999 ÷ 2 = 2 386 572 360 992 431 640 624 999 999 999 999 + 1;
  • 2 386 572 360 992 431 640 624 999 999 999 999 ÷ 2 = 1 193 286 180 496 215 820 312 499 999 999 999 + 1;
  • 1 193 286 180 496 215 820 312 499 999 999 999 ÷ 2 = 596 643 090 248 107 910 156 249 999 999 999 + 1;
  • 596 643 090 248 107 910 156 249 999 999 999 ÷ 2 = 298 321 545 124 053 955 078 124 999 999 999 + 1;
  • 298 321 545 124 053 955 078 124 999 999 999 ÷ 2 = 149 160 772 562 026 977 539 062 499 999 999 + 1;
  • 149 160 772 562 026 977 539 062 499 999 999 ÷ 2 = 74 580 386 281 013 488 769 531 249 999 999 + 1;
  • 74 580 386 281 013 488 769 531 249 999 999 ÷ 2 = 37 290 193 140 506 744 384 765 624 999 999 + 1;
  • 37 290 193 140 506 744 384 765 624 999 999 ÷ 2 = 18 645 096 570 253 372 192 382 812 499 999 + 1;
  • 18 645 096 570 253 372 192 382 812 499 999 ÷ 2 = 9 322 548 285 126 686 096 191 406 249 999 + 1;
  • 9 322 548 285 126 686 096 191 406 249 999 ÷ 2 = 4 661 274 142 563 343 048 095 703 124 999 + 1;
  • 4 661 274 142 563 343 048 095 703 124 999 ÷ 2 = 2 330 637 071 281 671 524 047 851 562 499 + 1;
  • 2 330 637 071 281 671 524 047 851 562 499 ÷ 2 = 1 165 318 535 640 835 762 023 925 781 249 + 1;
  • 1 165 318 535 640 835 762 023 925 781 249 ÷ 2 = 582 659 267 820 417 881 011 962 890 624 + 1;
  • 582 659 267 820 417 881 011 962 890 624 ÷ 2 = 291 329 633 910 208 940 505 981 445 312 + 0;
  • 291 329 633 910 208 940 505 981 445 312 ÷ 2 = 145 664 816 955 104 470 252 990 722 656 + 0;
  • 145 664 816 955 104 470 252 990 722 656 ÷ 2 = 72 832 408 477 552 235 126 495 361 328 + 0;
  • 72 832 408 477 552 235 126 495 361 328 ÷ 2 = 36 416 204 238 776 117 563 247 680 664 + 0;
  • 36 416 204 238 776 117 563 247 680 664 ÷ 2 = 18 208 102 119 388 058 781 623 840 332 + 0;
  • 18 208 102 119 388 058 781 623 840 332 ÷ 2 = 9 104 051 059 694 029 390 811 920 166 + 0;
  • 9 104 051 059 694 029 390 811 920 166 ÷ 2 = 4 552 025 529 847 014 695 405 960 083 + 0;
  • 4 552 025 529 847 014 695 405 960 083 ÷ 2 = 2 276 012 764 923 507 347 702 980 041 + 1;
  • 2 276 012 764 923 507 347 702 980 041 ÷ 2 = 1 138 006 382 461 753 673 851 490 020 + 1;
  • 1 138 006 382 461 753 673 851 490 020 ÷ 2 = 569 003 191 230 876 836 925 745 010 + 0;
  • 569 003 191 230 876 836 925 745 010 ÷ 2 = 284 501 595 615 438 418 462 872 505 + 0;
  • 284 501 595 615 438 418 462 872 505 ÷ 2 = 142 250 797 807 719 209 231 436 252 + 1;
  • 142 250 797 807 719 209 231 436 252 ÷ 2 = 71 125 398 903 859 604 615 718 126 + 0;
  • 71 125 398 903 859 604 615 718 126 ÷ 2 = 35 562 699 451 929 802 307 859 063 + 0;
  • 35 562 699 451 929 802 307 859 063 ÷ 2 = 17 781 349 725 964 901 153 929 531 + 1;
  • 17 781 349 725 964 901 153 929 531 ÷ 2 = 8 890 674 862 982 450 576 964 765 + 1;
  • 8 890 674 862 982 450 576 964 765 ÷ 2 = 4 445 337 431 491 225 288 482 382 + 1;
  • 4 445 337 431 491 225 288 482 382 ÷ 2 = 2 222 668 715 745 612 644 241 191 + 0;
  • 2 222 668 715 745 612 644 241 191 ÷ 2 = 1 111 334 357 872 806 322 120 595 + 1;
  • 1 111 334 357 872 806 322 120 595 ÷ 2 = 555 667 178 936 403 161 060 297 + 1;
  • 555 667 178 936 403 161 060 297 ÷ 2 = 277 833 589 468 201 580 530 148 + 1;
  • 277 833 589 468 201 580 530 148 ÷ 2 = 138 916 794 734 100 790 265 074 + 0;
  • 138 916 794 734 100 790 265 074 ÷ 2 = 69 458 397 367 050 395 132 537 + 0;
  • 69 458 397 367 050 395 132 537 ÷ 2 = 34 729 198 683 525 197 566 268 + 1;
  • 34 729 198 683 525 197 566 268 ÷ 2 = 17 364 599 341 762 598 783 134 + 0;
  • 17 364 599 341 762 598 783 134 ÷ 2 = 8 682 299 670 881 299 391 567 + 0;
  • 8 682 299 670 881 299 391 567 ÷ 2 = 4 341 149 835 440 649 695 783 + 1;
  • 4 341 149 835 440 649 695 783 ÷ 2 = 2 170 574 917 720 324 847 891 + 1;
  • 2 170 574 917 720 324 847 891 ÷ 2 = 1 085 287 458 860 162 423 945 + 1;
  • 1 085 287 458 860 162 423 945 ÷ 2 = 542 643 729 430 081 211 972 + 1;
  • 542 643 729 430 081 211 972 ÷ 2 = 271 321 864 715 040 605 986 + 0;
  • 271 321 864 715 040 605 986 ÷ 2 = 135 660 932 357 520 302 993 + 0;
  • 135 660 932 357 520 302 993 ÷ 2 = 67 830 466 178 760 151 496 + 1;
  • 67 830 466 178 760 151 496 ÷ 2 = 33 915 233 089 380 075 748 + 0;
  • 33 915 233 089 380 075 748 ÷ 2 = 16 957 616 544 690 037 874 + 0;
  • 16 957 616 544 690 037 874 ÷ 2 = 8 478 808 272 345 018 937 + 0;
  • 8 478 808 272 345 018 937 ÷ 2 = 4 239 404 136 172 509 468 + 1;
  • 4 239 404 136 172 509 468 ÷ 2 = 2 119 702 068 086 254 734 + 0;
  • 2 119 702 068 086 254 734 ÷ 2 = 1 059 851 034 043 127 367 + 0;
  • 1 059 851 034 043 127 367 ÷ 2 = 529 925 517 021 563 683 + 1;
  • 529 925 517 021 563 683 ÷ 2 = 264 962 758 510 781 841 + 1;
  • 264 962 758 510 781 841 ÷ 2 = 132 481 379 255 390 920 + 1;
  • 132 481 379 255 390 920 ÷ 2 = 66 240 689 627 695 460 + 0;
  • 66 240 689 627 695 460 ÷ 2 = 33 120 344 813 847 730 + 0;
  • 33 120 344 813 847 730 ÷ 2 = 16 560 172 406 923 865 + 0;
  • 16 560 172 406 923 865 ÷ 2 = 8 280 086 203 461 932 + 1;
  • 8 280 086 203 461 932 ÷ 2 = 4 140 043 101 730 966 + 0;
  • 4 140 043 101 730 966 ÷ 2 = 2 070 021 550 865 483 + 0;
  • 2 070 021 550 865 483 ÷ 2 = 1 035 010 775 432 741 + 1;
  • 1 035 010 775 432 741 ÷ 2 = 517 505 387 716 370 + 1;
  • 517 505 387 716 370 ÷ 2 = 258 752 693 858 185 + 0;
  • 258 752 693 858 185 ÷ 2 = 129 376 346 929 092 + 1;
  • 129 376 346 929 092 ÷ 2 = 64 688 173 464 546 + 0;
  • 64 688 173 464 546 ÷ 2 = 32 344 086 732 273 + 0;
  • 32 344 086 732 273 ÷ 2 = 16 172 043 366 136 + 1;
  • 16 172 043 366 136 ÷ 2 = 8 086 021 683 068 + 0;
  • 8 086 021 683 068 ÷ 2 = 4 043 010 841 534 + 0;
  • 4 043 010 841 534 ÷ 2 = 2 021 505 420 767 + 0;
  • 2 021 505 420 767 ÷ 2 = 1 010 752 710 383 + 1;
  • 1 010 752 710 383 ÷ 2 = 505 376 355 191 + 1;
  • 505 376 355 191 ÷ 2 = 252 688 177 595 + 1;
  • 252 688 177 595 ÷ 2 = 126 344 088 797 + 1;
  • 126 344 088 797 ÷ 2 = 63 172 044 398 + 1;
  • 63 172 044 398 ÷ 2 = 31 586 022 199 + 0;
  • 31 586 022 199 ÷ 2 = 15 793 011 099 + 1;
  • 15 793 011 099 ÷ 2 = 7 896 505 549 + 1;
  • 7 896 505 549 ÷ 2 = 3 948 252 774 + 1;
  • 3 948 252 774 ÷ 2 = 1 974 126 387 + 0;
  • 1 974 126 387 ÷ 2 = 987 063 193 + 1;
  • 987 063 193 ÷ 2 = 493 531 596 + 1;
  • 493 531 596 ÷ 2 = 246 765 798 + 0;
  • 246 765 798 ÷ 2 = 123 382 899 + 0;
  • 123 382 899 ÷ 2 = 61 691 449 + 1;
  • 61 691 449 ÷ 2 = 30 845 724 + 1;
  • 30 845 724 ÷ 2 = 15 422 862 + 0;
  • 15 422 862 ÷ 2 = 7 711 431 + 0;
  • 7 711 431 ÷ 2 = 3 855 715 + 1;
  • 3 855 715 ÷ 2 = 1 927 857 + 1;
  • 1 927 857 ÷ 2 = 963 928 + 1;
  • 963 928 ÷ 2 = 481 964 + 0;
  • 481 964 ÷ 2 = 240 982 + 0;
  • 240 982 ÷ 2 = 120 491 + 0;
  • 120 491 ÷ 2 = 60 245 + 1;
  • 60 245 ÷ 2 = 30 122 + 1;
  • 30 122 ÷ 2 = 15 061 + 0;
  • 15 061 ÷ 2 = 7 530 + 1;
  • 7 530 ÷ 2 = 3 765 + 0;
  • 3 765 ÷ 2 = 1 882 + 1;
  • 1 882 ÷ 2 = 941 + 0;
  • 941 ÷ 2 = 470 + 1;
  • 470 ÷ 2 = 235 + 0;
  • 235 ÷ 2 = 117 + 1;
  • 117 ÷ 2 = 58 + 1;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 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.

10 010 009 999 999 999 999 999 999 999 999 999 999 507(10) =


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


3. Normalize the binary representation of the number.

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


10 010 009 999 999 999 999 999 999 999 999 999 999 507(10) =


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


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


1.1101 0110 1010 1011 0001 1100 1100 1101 1101 1111 0001 0010 1100 1000 1110 0100 0100 1111 0010 0111 0111 0010 0110 0000 0011 1111 1111 1111 1111 1111 1110 0001 0011(2) × 2132


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


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


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


132 + 2(11-1) - 1 =


(132 + 1 023)(10) =


1 155(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 155 ÷ 2 = 577 + 1;
  • 577 ÷ 2 = 288 + 1;
  • 288 ÷ 2 = 144 + 0;
  • 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;

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


1155(10) =


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


1101 0110 1010 1011 0001 1100 1100 1101 1101 1111 0001 0010 1100


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 1000 0011


Mantissa (52 bits) =
1101 0110 1010 1011 0001 1100 1100 1101 1101 1111 0001 0010 1100


Decimal number 10 010 009 999 999 999 999 999 999 999 999 999 999 507 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 1000 0011 - 1101 0110 1010 1011 0001 1100 1100 1101 1101 1111 0001 0010 1100

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