1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661(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
1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661(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;
  • 1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661 ÷ 2 = 500 500 550 000 000 000 000 000 000 000 000 000 000 000 000 000 330 + 1;
  • 500 500 550 000 000 000 000 000 000 000 000 000 000 000 000 000 330 ÷ 2 = 250 250 275 000 000 000 000 000 000 000 000 000 000 000 000 000 165 + 0;
  • 250 250 275 000 000 000 000 000 000 000 000 000 000 000 000 000 165 ÷ 2 = 125 125 137 500 000 000 000 000 000 000 000 000 000 000 000 000 082 + 1;
  • 125 125 137 500 000 000 000 000 000 000 000 000 000 000 000 000 082 ÷ 2 = 62 562 568 750 000 000 000 000 000 000 000 000 000 000 000 000 041 + 0;
  • 62 562 568 750 000 000 000 000 000 000 000 000 000 000 000 000 041 ÷ 2 = 31 281 284 375 000 000 000 000 000 000 000 000 000 000 000 000 020 + 1;
  • 31 281 284 375 000 000 000 000 000 000 000 000 000 000 000 000 020 ÷ 2 = 15 640 642 187 500 000 000 000 000 000 000 000 000 000 000 000 010 + 0;
  • 15 640 642 187 500 000 000 000 000 000 000 000 000 000 000 000 010 ÷ 2 = 7 820 321 093 750 000 000 000 000 000 000 000 000 000 000 000 005 + 0;
  • 7 820 321 093 750 000 000 000 000 000 000 000 000 000 000 000 005 ÷ 2 = 3 910 160 546 875 000 000 000 000 000 000 000 000 000 000 000 002 + 1;
  • 3 910 160 546 875 000 000 000 000 000 000 000 000 000 000 000 002 ÷ 2 = 1 955 080 273 437 500 000 000 000 000 000 000 000 000 000 000 001 + 0;
  • 1 955 080 273 437 500 000 000 000 000 000 000 000 000 000 000 001 ÷ 2 = 977 540 136 718 750 000 000 000 000 000 000 000 000 000 000 000 + 1;
  • 977 540 136 718 750 000 000 000 000 000 000 000 000 000 000 000 ÷ 2 = 488 770 068 359 375 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 488 770 068 359 375 000 000 000 000 000 000 000 000 000 000 000 ÷ 2 = 244 385 034 179 687 500 000 000 000 000 000 000 000 000 000 000 + 0;
  • 244 385 034 179 687 500 000 000 000 000 000 000 000 000 000 000 ÷ 2 = 122 192 517 089 843 750 000 000 000 000 000 000 000 000 000 000 + 0;
  • 122 192 517 089 843 750 000 000 000 000 000 000 000 000 000 000 ÷ 2 = 61 096 258 544 921 875 000 000 000 000 000 000 000 000 000 000 + 0;
  • 61 096 258 544 921 875 000 000 000 000 000 000 000 000 000 000 ÷ 2 = 30 548 129 272 460 937 500 000 000 000 000 000 000 000 000 000 + 0;
  • 30 548 129 272 460 937 500 000 000 000 000 000 000 000 000 000 ÷ 2 = 15 274 064 636 230 468 750 000 000 000 000 000 000 000 000 000 + 0;
  • 15 274 064 636 230 468 750 000 000 000 000 000 000 000 000 000 ÷ 2 = 7 637 032 318 115 234 375 000 000 000 000 000 000 000 000 000 + 0;
  • 7 637 032 318 115 234 375 000 000 000 000 000 000 000 000 000 ÷ 2 = 3 818 516 159 057 617 187 500 000 000 000 000 000 000 000 000 + 0;
  • 3 818 516 159 057 617 187 500 000 000 000 000 000 000 000 000 ÷ 2 = 1 909 258 079 528 808 593 750 000 000 000 000 000 000 000 000 + 0;
  • 1 909 258 079 528 808 593 750 000 000 000 000 000 000 000 000 ÷ 2 = 954 629 039 764 404 296 875 000 000 000 000 000 000 000 000 + 0;
  • 954 629 039 764 404 296 875 000 000 000 000 000 000 000 000 ÷ 2 = 477 314 519 882 202 148 437 500 000 000 000 000 000 000 000 + 0;
  • 477 314 519 882 202 148 437 500 000 000 000 000 000 000 000 ÷ 2 = 238 657 259 941 101 074 218 750 000 000 000 000 000 000 000 + 0;
  • 238 657 259 941 101 074 218 750 000 000 000 000 000 000 000 ÷ 2 = 119 328 629 970 550 537 109 375 000 000 000 000 000 000 000 + 0;
  • 119 328 629 970 550 537 109 375 000 000 000 000 000 000 000 ÷ 2 = 59 664 314 985 275 268 554 687 500 000 000 000 000 000 000 + 0;
  • 59 664 314 985 275 268 554 687 500 000 000 000 000 000 000 ÷ 2 = 29 832 157 492 637 634 277 343 750 000 000 000 000 000 000 + 0;
  • 29 832 157 492 637 634 277 343 750 000 000 000 000 000 000 ÷ 2 = 14 916 078 746 318 817 138 671 875 000 000 000 000 000 000 + 0;
  • 14 916 078 746 318 817 138 671 875 000 000 000 000 000 000 ÷ 2 = 7 458 039 373 159 408 569 335 937 500 000 000 000 000 000 + 0;
  • 7 458 039 373 159 408 569 335 937 500 000 000 000 000 000 ÷ 2 = 3 729 019 686 579 704 284 667 968 750 000 000 000 000 000 + 0;
  • 3 729 019 686 579 704 284 667 968 750 000 000 000 000 000 ÷ 2 = 1 864 509 843 289 852 142 333 984 375 000 000 000 000 000 + 0;
  • 1 864 509 843 289 852 142 333 984 375 000 000 000 000 000 ÷ 2 = 932 254 921 644 926 071 166 992 187 500 000 000 000 000 + 0;
  • 932 254 921 644 926 071 166 992 187 500 000 000 000 000 ÷ 2 = 466 127 460 822 463 035 583 496 093 750 000 000 000 000 + 0;
  • 466 127 460 822 463 035 583 496 093 750 000 000 000 000 ÷ 2 = 233 063 730 411 231 517 791 748 046 875 000 000 000 000 + 0;
  • 233 063 730 411 231 517 791 748 046 875 000 000 000 000 ÷ 2 = 116 531 865 205 615 758 895 874 023 437 500 000 000 000 + 0;
  • 116 531 865 205 615 758 895 874 023 437 500 000 000 000 ÷ 2 = 58 265 932 602 807 879 447 937 011 718 750 000 000 000 + 0;
  • 58 265 932 602 807 879 447 937 011 718 750 000 000 000 ÷ 2 = 29 132 966 301 403 939 723 968 505 859 375 000 000 000 + 0;
  • 29 132 966 301 403 939 723 968 505 859 375 000 000 000 ÷ 2 = 14 566 483 150 701 969 861 984 252 929 687 500 000 000 + 0;
  • 14 566 483 150 701 969 861 984 252 929 687 500 000 000 ÷ 2 = 7 283 241 575 350 984 930 992 126 464 843 750 000 000 + 0;
  • 7 283 241 575 350 984 930 992 126 464 843 750 000 000 ÷ 2 = 3 641 620 787 675 492 465 496 063 232 421 875 000 000 + 0;
  • 3 641 620 787 675 492 465 496 063 232 421 875 000 000 ÷ 2 = 1 820 810 393 837 746 232 748 031 616 210 937 500 000 + 0;
  • 1 820 810 393 837 746 232 748 031 616 210 937 500 000 ÷ 2 = 910 405 196 918 873 116 374 015 808 105 468 750 000 + 0;
  • 910 405 196 918 873 116 374 015 808 105 468 750 000 ÷ 2 = 455 202 598 459 436 558 187 007 904 052 734 375 000 + 0;
  • 455 202 598 459 436 558 187 007 904 052 734 375 000 ÷ 2 = 227 601 299 229 718 279 093 503 952 026 367 187 500 + 0;
  • 227 601 299 229 718 279 093 503 952 026 367 187 500 ÷ 2 = 113 800 649 614 859 139 546 751 976 013 183 593 750 + 0;
  • 113 800 649 614 859 139 546 751 976 013 183 593 750 ÷ 2 = 56 900 324 807 429 569 773 375 988 006 591 796 875 + 0;
  • 56 900 324 807 429 569 773 375 988 006 591 796 875 ÷ 2 = 28 450 162 403 714 784 886 687 994 003 295 898 437 + 1;
  • 28 450 162 403 714 784 886 687 994 003 295 898 437 ÷ 2 = 14 225 081 201 857 392 443 343 997 001 647 949 218 + 1;
  • 14 225 081 201 857 392 443 343 997 001 647 949 218 ÷ 2 = 7 112 540 600 928 696 221 671 998 500 823 974 609 + 0;
  • 7 112 540 600 928 696 221 671 998 500 823 974 609 ÷ 2 = 3 556 270 300 464 348 110 835 999 250 411 987 304 + 1;
  • 3 556 270 300 464 348 110 835 999 250 411 987 304 ÷ 2 = 1 778 135 150 232 174 055 417 999 625 205 993 652 + 0;
  • 1 778 135 150 232 174 055 417 999 625 205 993 652 ÷ 2 = 889 067 575 116 087 027 708 999 812 602 996 826 + 0;
  • 889 067 575 116 087 027 708 999 812 602 996 826 ÷ 2 = 444 533 787 558 043 513 854 499 906 301 498 413 + 0;
  • 444 533 787 558 043 513 854 499 906 301 498 413 ÷ 2 = 222 266 893 779 021 756 927 249 953 150 749 206 + 1;
  • 222 266 893 779 021 756 927 249 953 150 749 206 ÷ 2 = 111 133 446 889 510 878 463 624 976 575 374 603 + 0;
  • 111 133 446 889 510 878 463 624 976 575 374 603 ÷ 2 = 55 566 723 444 755 439 231 812 488 287 687 301 + 1;
  • 55 566 723 444 755 439 231 812 488 287 687 301 ÷ 2 = 27 783 361 722 377 719 615 906 244 143 843 650 + 1;
  • 27 783 361 722 377 719 615 906 244 143 843 650 ÷ 2 = 13 891 680 861 188 859 807 953 122 071 921 825 + 0;
  • 13 891 680 861 188 859 807 953 122 071 921 825 ÷ 2 = 6 945 840 430 594 429 903 976 561 035 960 912 + 1;
  • 6 945 840 430 594 429 903 976 561 035 960 912 ÷ 2 = 3 472 920 215 297 214 951 988 280 517 980 456 + 0;
  • 3 472 920 215 297 214 951 988 280 517 980 456 ÷ 2 = 1 736 460 107 648 607 475 994 140 258 990 228 + 0;
  • 1 736 460 107 648 607 475 994 140 258 990 228 ÷ 2 = 868 230 053 824 303 737 997 070 129 495 114 + 0;
  • 868 230 053 824 303 737 997 070 129 495 114 ÷ 2 = 434 115 026 912 151 868 998 535 064 747 557 + 0;
  • 434 115 026 912 151 868 998 535 064 747 557 ÷ 2 = 217 057 513 456 075 934 499 267 532 373 778 + 1;
  • 217 057 513 456 075 934 499 267 532 373 778 ÷ 2 = 108 528 756 728 037 967 249 633 766 186 889 + 0;
  • 108 528 756 728 037 967 249 633 766 186 889 ÷ 2 = 54 264 378 364 018 983 624 816 883 093 444 + 1;
  • 54 264 378 364 018 983 624 816 883 093 444 ÷ 2 = 27 132 189 182 009 491 812 408 441 546 722 + 0;
  • 27 132 189 182 009 491 812 408 441 546 722 ÷ 2 = 13 566 094 591 004 745 906 204 220 773 361 + 0;
  • 13 566 094 591 004 745 906 204 220 773 361 ÷ 2 = 6 783 047 295 502 372 953 102 110 386 680 + 1;
  • 6 783 047 295 502 372 953 102 110 386 680 ÷ 2 = 3 391 523 647 751 186 476 551 055 193 340 + 0;
  • 3 391 523 647 751 186 476 551 055 193 340 ÷ 2 = 1 695 761 823 875 593 238 275 527 596 670 + 0;
  • 1 695 761 823 875 593 238 275 527 596 670 ÷ 2 = 847 880 911 937 796 619 137 763 798 335 + 0;
  • 847 880 911 937 796 619 137 763 798 335 ÷ 2 = 423 940 455 968 898 309 568 881 899 167 + 1;
  • 423 940 455 968 898 309 568 881 899 167 ÷ 2 = 211 970 227 984 449 154 784 440 949 583 + 1;
  • 211 970 227 984 449 154 784 440 949 583 ÷ 2 = 105 985 113 992 224 577 392 220 474 791 + 1;
  • 105 985 113 992 224 577 392 220 474 791 ÷ 2 = 52 992 556 996 112 288 696 110 237 395 + 1;
  • 52 992 556 996 112 288 696 110 237 395 ÷ 2 = 26 496 278 498 056 144 348 055 118 697 + 1;
  • 26 496 278 498 056 144 348 055 118 697 ÷ 2 = 13 248 139 249 028 072 174 027 559 348 + 1;
  • 13 248 139 249 028 072 174 027 559 348 ÷ 2 = 6 624 069 624 514 036 087 013 779 674 + 0;
  • 6 624 069 624 514 036 087 013 779 674 ÷ 2 = 3 312 034 812 257 018 043 506 889 837 + 0;
  • 3 312 034 812 257 018 043 506 889 837 ÷ 2 = 1 656 017 406 128 509 021 753 444 918 + 1;
  • 1 656 017 406 128 509 021 753 444 918 ÷ 2 = 828 008 703 064 254 510 876 722 459 + 0;
  • 828 008 703 064 254 510 876 722 459 ÷ 2 = 414 004 351 532 127 255 438 361 229 + 1;
  • 414 004 351 532 127 255 438 361 229 ÷ 2 = 207 002 175 766 063 627 719 180 614 + 1;
  • 207 002 175 766 063 627 719 180 614 ÷ 2 = 103 501 087 883 031 813 859 590 307 + 0;
  • 103 501 087 883 031 813 859 590 307 ÷ 2 = 51 750 543 941 515 906 929 795 153 + 1;
  • 51 750 543 941 515 906 929 795 153 ÷ 2 = 25 875 271 970 757 953 464 897 576 + 1;
  • 25 875 271 970 757 953 464 897 576 ÷ 2 = 12 937 635 985 378 976 732 448 788 + 0;
  • 12 937 635 985 378 976 732 448 788 ÷ 2 = 6 468 817 992 689 488 366 224 394 + 0;
  • 6 468 817 992 689 488 366 224 394 ÷ 2 = 3 234 408 996 344 744 183 112 197 + 0;
  • 3 234 408 996 344 744 183 112 197 ÷ 2 = 1 617 204 498 172 372 091 556 098 + 1;
  • 1 617 204 498 172 372 091 556 098 ÷ 2 = 808 602 249 086 186 045 778 049 + 0;
  • 808 602 249 086 186 045 778 049 ÷ 2 = 404 301 124 543 093 022 889 024 + 1;
  • 404 301 124 543 093 022 889 024 ÷ 2 = 202 150 562 271 546 511 444 512 + 0;
  • 202 150 562 271 546 511 444 512 ÷ 2 = 101 075 281 135 773 255 722 256 + 0;
  • 101 075 281 135 773 255 722 256 ÷ 2 = 50 537 640 567 886 627 861 128 + 0;
  • 50 537 640 567 886 627 861 128 ÷ 2 = 25 268 820 283 943 313 930 564 + 0;
  • 25 268 820 283 943 313 930 564 ÷ 2 = 12 634 410 141 971 656 965 282 + 0;
  • 12 634 410 141 971 656 965 282 ÷ 2 = 6 317 205 070 985 828 482 641 + 0;
  • 6 317 205 070 985 828 482 641 ÷ 2 = 3 158 602 535 492 914 241 320 + 1;
  • 3 158 602 535 492 914 241 320 ÷ 2 = 1 579 301 267 746 457 120 660 + 0;
  • 1 579 301 267 746 457 120 660 ÷ 2 = 789 650 633 873 228 560 330 + 0;
  • 789 650 633 873 228 560 330 ÷ 2 = 394 825 316 936 614 280 165 + 0;
  • 394 825 316 936 614 280 165 ÷ 2 = 197 412 658 468 307 140 082 + 1;
  • 197 412 658 468 307 140 082 ÷ 2 = 98 706 329 234 153 570 041 + 0;
  • 98 706 329 234 153 570 041 ÷ 2 = 49 353 164 617 076 785 020 + 1;
  • 49 353 164 617 076 785 020 ÷ 2 = 24 676 582 308 538 392 510 + 0;
  • 24 676 582 308 538 392 510 ÷ 2 = 12 338 291 154 269 196 255 + 0;
  • 12 338 291 154 269 196 255 ÷ 2 = 6 169 145 577 134 598 127 + 1;
  • 6 169 145 577 134 598 127 ÷ 2 = 3 084 572 788 567 299 063 + 1;
  • 3 084 572 788 567 299 063 ÷ 2 = 1 542 286 394 283 649 531 + 1;
  • 1 542 286 394 283 649 531 ÷ 2 = 771 143 197 141 824 765 + 1;
  • 771 143 197 141 824 765 ÷ 2 = 385 571 598 570 912 382 + 1;
  • 385 571 598 570 912 382 ÷ 2 = 192 785 799 285 456 191 + 0;
  • 192 785 799 285 456 191 ÷ 2 = 96 392 899 642 728 095 + 1;
  • 96 392 899 642 728 095 ÷ 2 = 48 196 449 821 364 047 + 1;
  • 48 196 449 821 364 047 ÷ 2 = 24 098 224 910 682 023 + 1;
  • 24 098 224 910 682 023 ÷ 2 = 12 049 112 455 341 011 + 1;
  • 12 049 112 455 341 011 ÷ 2 = 6 024 556 227 670 505 + 1;
  • 6 024 556 227 670 505 ÷ 2 = 3 012 278 113 835 252 + 1;
  • 3 012 278 113 835 252 ÷ 2 = 1 506 139 056 917 626 + 0;
  • 1 506 139 056 917 626 ÷ 2 = 753 069 528 458 813 + 0;
  • 753 069 528 458 813 ÷ 2 = 376 534 764 229 406 + 1;
  • 376 534 764 229 406 ÷ 2 = 188 267 382 114 703 + 0;
  • 188 267 382 114 703 ÷ 2 = 94 133 691 057 351 + 1;
  • 94 133 691 057 351 ÷ 2 = 47 066 845 528 675 + 1;
  • 47 066 845 528 675 ÷ 2 = 23 533 422 764 337 + 1;
  • 23 533 422 764 337 ÷ 2 = 11 766 711 382 168 + 1;
  • 11 766 711 382 168 ÷ 2 = 5 883 355 691 084 + 0;
  • 5 883 355 691 084 ÷ 2 = 2 941 677 845 542 + 0;
  • 2 941 677 845 542 ÷ 2 = 1 470 838 922 771 + 0;
  • 1 470 838 922 771 ÷ 2 = 735 419 461 385 + 1;
  • 735 419 461 385 ÷ 2 = 367 709 730 692 + 1;
  • 367 709 730 692 ÷ 2 = 183 854 865 346 + 0;
  • 183 854 865 346 ÷ 2 = 91 927 432 673 + 0;
  • 91 927 432 673 ÷ 2 = 45 963 716 336 + 1;
  • 45 963 716 336 ÷ 2 = 22 981 858 168 + 0;
  • 22 981 858 168 ÷ 2 = 11 490 929 084 + 0;
  • 11 490 929 084 ÷ 2 = 5 745 464 542 + 0;
  • 5 745 464 542 ÷ 2 = 2 872 732 271 + 0;
  • 2 872 732 271 ÷ 2 = 1 436 366 135 + 1;
  • 1 436 366 135 ÷ 2 = 718 183 067 + 1;
  • 718 183 067 ÷ 2 = 359 091 533 + 1;
  • 359 091 533 ÷ 2 = 179 545 766 + 1;
  • 179 545 766 ÷ 2 = 89 772 883 + 0;
  • 89 772 883 ÷ 2 = 44 886 441 + 1;
  • 44 886 441 ÷ 2 = 22 443 220 + 1;
  • 22 443 220 ÷ 2 = 11 221 610 + 0;
  • 11 221 610 ÷ 2 = 5 610 805 + 0;
  • 5 610 805 ÷ 2 = 2 805 402 + 1;
  • 2 805 402 ÷ 2 = 1 402 701 + 0;
  • 1 402 701 ÷ 2 = 701 350 + 1;
  • 701 350 ÷ 2 = 350 675 + 0;
  • 350 675 ÷ 2 = 175 337 + 1;
  • 175 337 ÷ 2 = 87 668 + 1;
  • 87 668 ÷ 2 = 43 834 + 0;
  • 43 834 ÷ 2 = 21 917 + 0;
  • 21 917 ÷ 2 = 10 958 + 1;
  • 10 958 ÷ 2 = 5 479 + 0;
  • 5 479 ÷ 2 = 2 739 + 1;
  • 2 739 ÷ 2 = 1 369 + 1;
  • 1 369 ÷ 2 = 684 + 1;
  • 684 ÷ 2 = 342 + 0;
  • 342 ÷ 2 = 171 + 0;
  • 171 ÷ 2 = 85 + 1;
  • 85 ÷ 2 = 42 + 1;
  • 42 ÷ 2 = 21 + 0;
  • 21 ÷ 2 = 10 + 1;
  • 10 ÷ 2 = 5 + 0;
  • 5 ÷ 2 = 2 + 1;
  • 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.

1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661(10) =


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


3. Normalize the binary representation of the number.

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


1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661(10) =


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


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


1.0101 0110 0111 0100 1101 0100 1101 1110 0001 0011 0001 1110 1001 1111 1011 1110 0101 0001 0000 0010 1000 1101 1010 0111 1110 0010 0101 0000 1011 0100 0101 1000 0000 0000 0000 0000 0000 0000 0000 0001 0100 1010 1(2) × 2169


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


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


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


169 + 2(11-1) - 1 =


(169 + 1 023)(10) =


1 192(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 192 ÷ 2 = 596 + 0;
  • 596 ÷ 2 = 298 + 0;
  • 298 ÷ 2 = 149 + 0;
  • 149 ÷ 2 = 74 + 1;
  • 74 ÷ 2 = 37 + 0;
  • 37 ÷ 2 = 18 + 1;
  • 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) =


1192(10) =


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


0101 0110 0111 0100 1101 0100 1101 1110 0001 0011 0001 1110 1001


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


Mantissa (52 bits) =
0101 0110 0111 0100 1101 0100 1101 1110 0001 0011 0001 1110 1001


Decimal number 1 001 001 100 000 000 000 000 000 000 000 000 000 000 000 000 000 661 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 1010 1000 - 0101 0110 0111 0100 1101 0100 1101 1110 0001 0011 0001 1110 1001

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