751 141 171 151 101 111 041 111 141 151 071 211 029 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 751 141 171 151 101 111 041 111 141 151 071 211 029(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
751 141 171 151 101 111 041 111 141 151 071 211 029(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;
  • 751 141 171 151 101 111 041 111 141 151 071 211 029 ÷ 2 = 375 570 585 575 550 555 520 555 570 575 535 605 514 + 1;
  • 375 570 585 575 550 555 520 555 570 575 535 605 514 ÷ 2 = 187 785 292 787 775 277 760 277 785 287 767 802 757 + 0;
  • 187 785 292 787 775 277 760 277 785 287 767 802 757 ÷ 2 = 93 892 646 393 887 638 880 138 892 643 883 901 378 + 1;
  • 93 892 646 393 887 638 880 138 892 643 883 901 378 ÷ 2 = 46 946 323 196 943 819 440 069 446 321 941 950 689 + 0;
  • 46 946 323 196 943 819 440 069 446 321 941 950 689 ÷ 2 = 23 473 161 598 471 909 720 034 723 160 970 975 344 + 1;
  • 23 473 161 598 471 909 720 034 723 160 970 975 344 ÷ 2 = 11 736 580 799 235 954 860 017 361 580 485 487 672 + 0;
  • 11 736 580 799 235 954 860 017 361 580 485 487 672 ÷ 2 = 5 868 290 399 617 977 430 008 680 790 242 743 836 + 0;
  • 5 868 290 399 617 977 430 008 680 790 242 743 836 ÷ 2 = 2 934 145 199 808 988 715 004 340 395 121 371 918 + 0;
  • 2 934 145 199 808 988 715 004 340 395 121 371 918 ÷ 2 = 1 467 072 599 904 494 357 502 170 197 560 685 959 + 0;
  • 1 467 072 599 904 494 357 502 170 197 560 685 959 ÷ 2 = 733 536 299 952 247 178 751 085 098 780 342 979 + 1;
  • 733 536 299 952 247 178 751 085 098 780 342 979 ÷ 2 = 366 768 149 976 123 589 375 542 549 390 171 489 + 1;
  • 366 768 149 976 123 589 375 542 549 390 171 489 ÷ 2 = 183 384 074 988 061 794 687 771 274 695 085 744 + 1;
  • 183 384 074 988 061 794 687 771 274 695 085 744 ÷ 2 = 91 692 037 494 030 897 343 885 637 347 542 872 + 0;
  • 91 692 037 494 030 897 343 885 637 347 542 872 ÷ 2 = 45 846 018 747 015 448 671 942 818 673 771 436 + 0;
  • 45 846 018 747 015 448 671 942 818 673 771 436 ÷ 2 = 22 923 009 373 507 724 335 971 409 336 885 718 + 0;
  • 22 923 009 373 507 724 335 971 409 336 885 718 ÷ 2 = 11 461 504 686 753 862 167 985 704 668 442 859 + 0;
  • 11 461 504 686 753 862 167 985 704 668 442 859 ÷ 2 = 5 730 752 343 376 931 083 992 852 334 221 429 + 1;
  • 5 730 752 343 376 931 083 992 852 334 221 429 ÷ 2 = 2 865 376 171 688 465 541 996 426 167 110 714 + 1;
  • 2 865 376 171 688 465 541 996 426 167 110 714 ÷ 2 = 1 432 688 085 844 232 770 998 213 083 555 357 + 0;
  • 1 432 688 085 844 232 770 998 213 083 555 357 ÷ 2 = 716 344 042 922 116 385 499 106 541 777 678 + 1;
  • 716 344 042 922 116 385 499 106 541 777 678 ÷ 2 = 358 172 021 461 058 192 749 553 270 888 839 + 0;
  • 358 172 021 461 058 192 749 553 270 888 839 ÷ 2 = 179 086 010 730 529 096 374 776 635 444 419 + 1;
  • 179 086 010 730 529 096 374 776 635 444 419 ÷ 2 = 89 543 005 365 264 548 187 388 317 722 209 + 1;
  • 89 543 005 365 264 548 187 388 317 722 209 ÷ 2 = 44 771 502 682 632 274 093 694 158 861 104 + 1;
  • 44 771 502 682 632 274 093 694 158 861 104 ÷ 2 = 22 385 751 341 316 137 046 847 079 430 552 + 0;
  • 22 385 751 341 316 137 046 847 079 430 552 ÷ 2 = 11 192 875 670 658 068 523 423 539 715 276 + 0;
  • 11 192 875 670 658 068 523 423 539 715 276 ÷ 2 = 5 596 437 835 329 034 261 711 769 857 638 + 0;
  • 5 596 437 835 329 034 261 711 769 857 638 ÷ 2 = 2 798 218 917 664 517 130 855 884 928 819 + 0;
  • 2 798 218 917 664 517 130 855 884 928 819 ÷ 2 = 1 399 109 458 832 258 565 427 942 464 409 + 1;
  • 1 399 109 458 832 258 565 427 942 464 409 ÷ 2 = 699 554 729 416 129 282 713 971 232 204 + 1;
  • 699 554 729 416 129 282 713 971 232 204 ÷ 2 = 349 777 364 708 064 641 356 985 616 102 + 0;
  • 349 777 364 708 064 641 356 985 616 102 ÷ 2 = 174 888 682 354 032 320 678 492 808 051 + 0;
  • 174 888 682 354 032 320 678 492 808 051 ÷ 2 = 87 444 341 177 016 160 339 246 404 025 + 1;
  • 87 444 341 177 016 160 339 246 404 025 ÷ 2 = 43 722 170 588 508 080 169 623 202 012 + 1;
  • 43 722 170 588 508 080 169 623 202 012 ÷ 2 = 21 861 085 294 254 040 084 811 601 006 + 0;
  • 21 861 085 294 254 040 084 811 601 006 ÷ 2 = 10 930 542 647 127 020 042 405 800 503 + 0;
  • 10 930 542 647 127 020 042 405 800 503 ÷ 2 = 5 465 271 323 563 510 021 202 900 251 + 1;
  • 5 465 271 323 563 510 021 202 900 251 ÷ 2 = 2 732 635 661 781 755 010 601 450 125 + 1;
  • 2 732 635 661 781 755 010 601 450 125 ÷ 2 = 1 366 317 830 890 877 505 300 725 062 + 1;
  • 1 366 317 830 890 877 505 300 725 062 ÷ 2 = 683 158 915 445 438 752 650 362 531 + 0;
  • 683 158 915 445 438 752 650 362 531 ÷ 2 = 341 579 457 722 719 376 325 181 265 + 1;
  • 341 579 457 722 719 376 325 181 265 ÷ 2 = 170 789 728 861 359 688 162 590 632 + 1;
  • 170 789 728 861 359 688 162 590 632 ÷ 2 = 85 394 864 430 679 844 081 295 316 + 0;
  • 85 394 864 430 679 844 081 295 316 ÷ 2 = 42 697 432 215 339 922 040 647 658 + 0;
  • 42 697 432 215 339 922 040 647 658 ÷ 2 = 21 348 716 107 669 961 020 323 829 + 0;
  • 21 348 716 107 669 961 020 323 829 ÷ 2 = 10 674 358 053 834 980 510 161 914 + 1;
  • 10 674 358 053 834 980 510 161 914 ÷ 2 = 5 337 179 026 917 490 255 080 957 + 0;
  • 5 337 179 026 917 490 255 080 957 ÷ 2 = 2 668 589 513 458 745 127 540 478 + 1;
  • 2 668 589 513 458 745 127 540 478 ÷ 2 = 1 334 294 756 729 372 563 770 239 + 0;
  • 1 334 294 756 729 372 563 770 239 ÷ 2 = 667 147 378 364 686 281 885 119 + 1;
  • 667 147 378 364 686 281 885 119 ÷ 2 = 333 573 689 182 343 140 942 559 + 1;
  • 333 573 689 182 343 140 942 559 ÷ 2 = 166 786 844 591 171 570 471 279 + 1;
  • 166 786 844 591 171 570 471 279 ÷ 2 = 83 393 422 295 585 785 235 639 + 1;
  • 83 393 422 295 585 785 235 639 ÷ 2 = 41 696 711 147 792 892 617 819 + 1;
  • 41 696 711 147 792 892 617 819 ÷ 2 = 20 848 355 573 896 446 308 909 + 1;
  • 20 848 355 573 896 446 308 909 ÷ 2 = 10 424 177 786 948 223 154 454 + 1;
  • 10 424 177 786 948 223 154 454 ÷ 2 = 5 212 088 893 474 111 577 227 + 0;
  • 5 212 088 893 474 111 577 227 ÷ 2 = 2 606 044 446 737 055 788 613 + 1;
  • 2 606 044 446 737 055 788 613 ÷ 2 = 1 303 022 223 368 527 894 306 + 1;
  • 1 303 022 223 368 527 894 306 ÷ 2 = 651 511 111 684 263 947 153 + 0;
  • 651 511 111 684 263 947 153 ÷ 2 = 325 755 555 842 131 973 576 + 1;
  • 325 755 555 842 131 973 576 ÷ 2 = 162 877 777 921 065 986 788 + 0;
  • 162 877 777 921 065 986 788 ÷ 2 = 81 438 888 960 532 993 394 + 0;
  • 81 438 888 960 532 993 394 ÷ 2 = 40 719 444 480 266 496 697 + 0;
  • 40 719 444 480 266 496 697 ÷ 2 = 20 359 722 240 133 248 348 + 1;
  • 20 359 722 240 133 248 348 ÷ 2 = 10 179 861 120 066 624 174 + 0;
  • 10 179 861 120 066 624 174 ÷ 2 = 5 089 930 560 033 312 087 + 0;
  • 5 089 930 560 033 312 087 ÷ 2 = 2 544 965 280 016 656 043 + 1;
  • 2 544 965 280 016 656 043 ÷ 2 = 1 272 482 640 008 328 021 + 1;
  • 1 272 482 640 008 328 021 ÷ 2 = 636 241 320 004 164 010 + 1;
  • 636 241 320 004 164 010 ÷ 2 = 318 120 660 002 082 005 + 0;
  • 318 120 660 002 082 005 ÷ 2 = 159 060 330 001 041 002 + 1;
  • 159 060 330 001 041 002 ÷ 2 = 79 530 165 000 520 501 + 0;
  • 79 530 165 000 520 501 ÷ 2 = 39 765 082 500 260 250 + 1;
  • 39 765 082 500 260 250 ÷ 2 = 19 882 541 250 130 125 + 0;
  • 19 882 541 250 130 125 ÷ 2 = 9 941 270 625 065 062 + 1;
  • 9 941 270 625 065 062 ÷ 2 = 4 970 635 312 532 531 + 0;
  • 4 970 635 312 532 531 ÷ 2 = 2 485 317 656 266 265 + 1;
  • 2 485 317 656 266 265 ÷ 2 = 1 242 658 828 133 132 + 1;
  • 1 242 658 828 133 132 ÷ 2 = 621 329 414 066 566 + 0;
  • 621 329 414 066 566 ÷ 2 = 310 664 707 033 283 + 0;
  • 310 664 707 033 283 ÷ 2 = 155 332 353 516 641 + 1;
  • 155 332 353 516 641 ÷ 2 = 77 666 176 758 320 + 1;
  • 77 666 176 758 320 ÷ 2 = 38 833 088 379 160 + 0;
  • 38 833 088 379 160 ÷ 2 = 19 416 544 189 580 + 0;
  • 19 416 544 189 580 ÷ 2 = 9 708 272 094 790 + 0;
  • 9 708 272 094 790 ÷ 2 = 4 854 136 047 395 + 0;
  • 4 854 136 047 395 ÷ 2 = 2 427 068 023 697 + 1;
  • 2 427 068 023 697 ÷ 2 = 1 213 534 011 848 + 1;
  • 1 213 534 011 848 ÷ 2 = 606 767 005 924 + 0;
  • 606 767 005 924 ÷ 2 = 303 383 502 962 + 0;
  • 303 383 502 962 ÷ 2 = 151 691 751 481 + 0;
  • 151 691 751 481 ÷ 2 = 75 845 875 740 + 1;
  • 75 845 875 740 ÷ 2 = 37 922 937 870 + 0;
  • 37 922 937 870 ÷ 2 = 18 961 468 935 + 0;
  • 18 961 468 935 ÷ 2 = 9 480 734 467 + 1;
  • 9 480 734 467 ÷ 2 = 4 740 367 233 + 1;
  • 4 740 367 233 ÷ 2 = 2 370 183 616 + 1;
  • 2 370 183 616 ÷ 2 = 1 185 091 808 + 0;
  • 1 185 091 808 ÷ 2 = 592 545 904 + 0;
  • 592 545 904 ÷ 2 = 296 272 952 + 0;
  • 296 272 952 ÷ 2 = 148 136 476 + 0;
  • 148 136 476 ÷ 2 = 74 068 238 + 0;
  • 74 068 238 ÷ 2 = 37 034 119 + 0;
  • 37 034 119 ÷ 2 = 18 517 059 + 1;
  • 18 517 059 ÷ 2 = 9 258 529 + 1;
  • 9 258 529 ÷ 2 = 4 629 264 + 1;
  • 4 629 264 ÷ 2 = 2 314 632 + 0;
  • 2 314 632 ÷ 2 = 1 157 316 + 0;
  • 1 157 316 ÷ 2 = 578 658 + 0;
  • 578 658 ÷ 2 = 289 329 + 0;
  • 289 329 ÷ 2 = 144 664 + 1;
  • 144 664 ÷ 2 = 72 332 + 0;
  • 72 332 ÷ 2 = 36 166 + 0;
  • 36 166 ÷ 2 = 18 083 + 0;
  • 18 083 ÷ 2 = 9 041 + 1;
  • 9 041 ÷ 2 = 4 520 + 1;
  • 4 520 ÷ 2 = 2 260 + 0;
  • 2 260 ÷ 2 = 1 130 + 0;
  • 1 130 ÷ 2 = 565 + 0;
  • 565 ÷ 2 = 282 + 1;
  • 282 ÷ 2 = 141 + 0;
  • 141 ÷ 2 = 70 + 1;
  • 70 ÷ 2 = 35 + 0;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 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.

751 141 171 151 101 111 041 111 141 151 071 211 029(10) =


10 0011 0101 0001 1000 1000 0111 0000 0011 1001 0001 1000 0110 0110 1010 1011 1001 0001 0110 1111 1110 1010 0011 0111 0011 0011 0000 1110 1011 0000 1110 0001 0101(2)


3. Normalize the binary representation of the number.

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


751 141 171 151 101 111 041 111 141 151 071 211 029(10) =


10 0011 0101 0001 1000 1000 0111 0000 0011 1001 0001 1000 0110 0110 1010 1011 1001 0001 0110 1111 1110 1010 0011 0111 0011 0011 0000 1110 1011 0000 1110 0001 0101(2) =


10 0011 0101 0001 1000 1000 0111 0000 0011 1001 0001 1000 0110 0110 1010 1011 1001 0001 0110 1111 1110 1010 0011 0111 0011 0011 0000 1110 1011 0000 1110 0001 0101(2) × 20 =


1.0001 1010 1000 1100 0100 0011 1000 0001 1100 1000 1100 0011 0011 0101 0101 1100 1000 1011 0111 1111 0101 0001 1011 1001 1001 1000 0111 0101 1000 0111 0000 1010 1(2) × 2129


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


Mantissa (not normalized):
1.0001 1010 1000 1100 0100 0011 1000 0001 1100 1000 1100 0011 0011 0101 0101 1100 1000 1011 0111 1111 0101 0001 1011 1001 1001 1000 0111 0101 1000 0111 0000 1010 1


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


129 + 2(11-1) - 1 =


(129 + 1 023)(10) =


1 152(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 152 ÷ 2 = 576 + 0;
  • 576 ÷ 2 = 288 + 0;
  • 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) =


1152(10) =


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


0001 1010 1000 1100 0100 0011 1000 0001 1100 1000 1100 0011 0011


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 0000


Mantissa (52 bits) =
0001 1010 1000 1100 0100 0011 1000 0001 1100 1000 1100 0011 0011


Decimal number 751 141 171 151 101 111 041 111 141 151 071 211 029 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 1000 0000 - 0001 1010 1000 1100 0100 0011 1000 0001 1100 1000 1100 0011 0011


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