1 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021(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 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021(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 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021 ÷ 2 = 617 061 706 170 617 061 706 170 617 061 706 170 617 061 706 170 510 + 1;
  • 617 061 706 170 617 061 706 170 617 061 706 170 617 061 706 170 510 ÷ 2 = 308 530 853 085 308 530 853 085 308 530 853 085 308 530 853 085 255 + 0;
  • 308 530 853 085 308 530 853 085 308 530 853 085 308 530 853 085 255 ÷ 2 = 154 265 426 542 654 265 426 542 654 265 426 542 654 265 426 542 627 + 1;
  • 154 265 426 542 654 265 426 542 654 265 426 542 654 265 426 542 627 ÷ 2 = 77 132 713 271 327 132 713 271 327 132 713 271 327 132 713 271 313 + 1;
  • 77 132 713 271 327 132 713 271 327 132 713 271 327 132 713 271 313 ÷ 2 = 38 566 356 635 663 566 356 635 663 566 356 635 663 566 356 635 656 + 1;
  • 38 566 356 635 663 566 356 635 663 566 356 635 663 566 356 635 656 ÷ 2 = 19 283 178 317 831 783 178 317 831 783 178 317 831 783 178 317 828 + 0;
  • 19 283 178 317 831 783 178 317 831 783 178 317 831 783 178 317 828 ÷ 2 = 9 641 589 158 915 891 589 158 915 891 589 158 915 891 589 158 914 + 0;
  • 9 641 589 158 915 891 589 158 915 891 589 158 915 891 589 158 914 ÷ 2 = 4 820 794 579 457 945 794 579 457 945 794 579 457 945 794 579 457 + 0;
  • 4 820 794 579 457 945 794 579 457 945 794 579 457 945 794 579 457 ÷ 2 = 2 410 397 289 728 972 897 289 728 972 897 289 728 972 897 289 728 + 1;
  • 2 410 397 289 728 972 897 289 728 972 897 289 728 972 897 289 728 ÷ 2 = 1 205 198 644 864 486 448 644 864 486 448 644 864 486 448 644 864 + 0;
  • 1 205 198 644 864 486 448 644 864 486 448 644 864 486 448 644 864 ÷ 2 = 602 599 322 432 243 224 322 432 243 224 322 432 243 224 322 432 + 0;
  • 602 599 322 432 243 224 322 432 243 224 322 432 243 224 322 432 ÷ 2 = 301 299 661 216 121 612 161 216 121 612 161 216 121 612 161 216 + 0;
  • 301 299 661 216 121 612 161 216 121 612 161 216 121 612 161 216 ÷ 2 = 150 649 830 608 060 806 080 608 060 806 080 608 060 806 080 608 + 0;
  • 150 649 830 608 060 806 080 608 060 806 080 608 060 806 080 608 ÷ 2 = 75 324 915 304 030 403 040 304 030 403 040 304 030 403 040 304 + 0;
  • 75 324 915 304 030 403 040 304 030 403 040 304 030 403 040 304 ÷ 2 = 37 662 457 652 015 201 520 152 015 201 520 152 015 201 520 152 + 0;
  • 37 662 457 652 015 201 520 152 015 201 520 152 015 201 520 152 ÷ 2 = 18 831 228 826 007 600 760 076 007 600 760 076 007 600 760 076 + 0;
  • 18 831 228 826 007 600 760 076 007 600 760 076 007 600 760 076 ÷ 2 = 9 415 614 413 003 800 380 038 003 800 380 038 003 800 380 038 + 0;
  • 9 415 614 413 003 800 380 038 003 800 380 038 003 800 380 038 ÷ 2 = 4 707 807 206 501 900 190 019 001 900 190 019 001 900 190 019 + 0;
  • 4 707 807 206 501 900 190 019 001 900 190 019 001 900 190 019 ÷ 2 = 2 353 903 603 250 950 095 009 500 950 095 009 500 950 095 009 + 1;
  • 2 353 903 603 250 950 095 009 500 950 095 009 500 950 095 009 ÷ 2 = 1 176 951 801 625 475 047 504 750 475 047 504 750 475 047 504 + 1;
  • 1 176 951 801 625 475 047 504 750 475 047 504 750 475 047 504 ÷ 2 = 588 475 900 812 737 523 752 375 237 523 752 375 237 523 752 + 0;
  • 588 475 900 812 737 523 752 375 237 523 752 375 237 523 752 ÷ 2 = 294 237 950 406 368 761 876 187 618 761 876 187 618 761 876 + 0;
  • 294 237 950 406 368 761 876 187 618 761 876 187 618 761 876 ÷ 2 = 147 118 975 203 184 380 938 093 809 380 938 093 809 380 938 + 0;
  • 147 118 975 203 184 380 938 093 809 380 938 093 809 380 938 ÷ 2 = 73 559 487 601 592 190 469 046 904 690 469 046 904 690 469 + 0;
  • 73 559 487 601 592 190 469 046 904 690 469 046 904 690 469 ÷ 2 = 36 779 743 800 796 095 234 523 452 345 234 523 452 345 234 + 1;
  • 36 779 743 800 796 095 234 523 452 345 234 523 452 345 234 ÷ 2 = 18 389 871 900 398 047 617 261 726 172 617 261 726 172 617 + 0;
  • 18 389 871 900 398 047 617 261 726 172 617 261 726 172 617 ÷ 2 = 9 194 935 950 199 023 808 630 863 086 308 630 863 086 308 + 1;
  • 9 194 935 950 199 023 808 630 863 086 308 630 863 086 308 ÷ 2 = 4 597 467 975 099 511 904 315 431 543 154 315 431 543 154 + 0;
  • 4 597 467 975 099 511 904 315 431 543 154 315 431 543 154 ÷ 2 = 2 298 733 987 549 755 952 157 715 771 577 157 715 771 577 + 0;
  • 2 298 733 987 549 755 952 157 715 771 577 157 715 771 577 ÷ 2 = 1 149 366 993 774 877 976 078 857 885 788 578 857 885 788 + 1;
  • 1 149 366 993 774 877 976 078 857 885 788 578 857 885 788 ÷ 2 = 574 683 496 887 438 988 039 428 942 894 289 428 942 894 + 0;
  • 574 683 496 887 438 988 039 428 942 894 289 428 942 894 ÷ 2 = 287 341 748 443 719 494 019 714 471 447 144 714 471 447 + 0;
  • 287 341 748 443 719 494 019 714 471 447 144 714 471 447 ÷ 2 = 143 670 874 221 859 747 009 857 235 723 572 357 235 723 + 1;
  • 143 670 874 221 859 747 009 857 235 723 572 357 235 723 ÷ 2 = 71 835 437 110 929 873 504 928 617 861 786 178 617 861 + 1;
  • 71 835 437 110 929 873 504 928 617 861 786 178 617 861 ÷ 2 = 35 917 718 555 464 936 752 464 308 930 893 089 308 930 + 1;
  • 35 917 718 555 464 936 752 464 308 930 893 089 308 930 ÷ 2 = 17 958 859 277 732 468 376 232 154 465 446 544 654 465 + 0;
  • 17 958 859 277 732 468 376 232 154 465 446 544 654 465 ÷ 2 = 8 979 429 638 866 234 188 116 077 232 723 272 327 232 + 1;
  • 8 979 429 638 866 234 188 116 077 232 723 272 327 232 ÷ 2 = 4 489 714 819 433 117 094 058 038 616 361 636 163 616 + 0;
  • 4 489 714 819 433 117 094 058 038 616 361 636 163 616 ÷ 2 = 2 244 857 409 716 558 547 029 019 308 180 818 081 808 + 0;
  • 2 244 857 409 716 558 547 029 019 308 180 818 081 808 ÷ 2 = 1 122 428 704 858 279 273 514 509 654 090 409 040 904 + 0;
  • 1 122 428 704 858 279 273 514 509 654 090 409 040 904 ÷ 2 = 561 214 352 429 139 636 757 254 827 045 204 520 452 + 0;
  • 561 214 352 429 139 636 757 254 827 045 204 520 452 ÷ 2 = 280 607 176 214 569 818 378 627 413 522 602 260 226 + 0;
  • 280 607 176 214 569 818 378 627 413 522 602 260 226 ÷ 2 = 140 303 588 107 284 909 189 313 706 761 301 130 113 + 0;
  • 140 303 588 107 284 909 189 313 706 761 301 130 113 ÷ 2 = 70 151 794 053 642 454 594 656 853 380 650 565 056 + 1;
  • 70 151 794 053 642 454 594 656 853 380 650 565 056 ÷ 2 = 35 075 897 026 821 227 297 328 426 690 325 282 528 + 0;
  • 35 075 897 026 821 227 297 328 426 690 325 282 528 ÷ 2 = 17 537 948 513 410 613 648 664 213 345 162 641 264 + 0;
  • 17 537 948 513 410 613 648 664 213 345 162 641 264 ÷ 2 = 8 768 974 256 705 306 824 332 106 672 581 320 632 + 0;
  • 8 768 974 256 705 306 824 332 106 672 581 320 632 ÷ 2 = 4 384 487 128 352 653 412 166 053 336 290 660 316 + 0;
  • 4 384 487 128 352 653 412 166 053 336 290 660 316 ÷ 2 = 2 192 243 564 176 326 706 083 026 668 145 330 158 + 0;
  • 2 192 243 564 176 326 706 083 026 668 145 330 158 ÷ 2 = 1 096 121 782 088 163 353 041 513 334 072 665 079 + 0;
  • 1 096 121 782 088 163 353 041 513 334 072 665 079 ÷ 2 = 548 060 891 044 081 676 520 756 667 036 332 539 + 1;
  • 548 060 891 044 081 676 520 756 667 036 332 539 ÷ 2 = 274 030 445 522 040 838 260 378 333 518 166 269 + 1;
  • 274 030 445 522 040 838 260 378 333 518 166 269 ÷ 2 = 137 015 222 761 020 419 130 189 166 759 083 134 + 1;
  • 137 015 222 761 020 419 130 189 166 759 083 134 ÷ 2 = 68 507 611 380 510 209 565 094 583 379 541 567 + 0;
  • 68 507 611 380 510 209 565 094 583 379 541 567 ÷ 2 = 34 253 805 690 255 104 782 547 291 689 770 783 + 1;
  • 34 253 805 690 255 104 782 547 291 689 770 783 ÷ 2 = 17 126 902 845 127 552 391 273 645 844 885 391 + 1;
  • 17 126 902 845 127 552 391 273 645 844 885 391 ÷ 2 = 8 563 451 422 563 776 195 636 822 922 442 695 + 1;
  • 8 563 451 422 563 776 195 636 822 922 442 695 ÷ 2 = 4 281 725 711 281 888 097 818 411 461 221 347 + 1;
  • 4 281 725 711 281 888 097 818 411 461 221 347 ÷ 2 = 2 140 862 855 640 944 048 909 205 730 610 673 + 1;
  • 2 140 862 855 640 944 048 909 205 730 610 673 ÷ 2 = 1 070 431 427 820 472 024 454 602 865 305 336 + 1;
  • 1 070 431 427 820 472 024 454 602 865 305 336 ÷ 2 = 535 215 713 910 236 012 227 301 432 652 668 + 0;
  • 535 215 713 910 236 012 227 301 432 652 668 ÷ 2 = 267 607 856 955 118 006 113 650 716 326 334 + 0;
  • 267 607 856 955 118 006 113 650 716 326 334 ÷ 2 = 133 803 928 477 559 003 056 825 358 163 167 + 0;
  • 133 803 928 477 559 003 056 825 358 163 167 ÷ 2 = 66 901 964 238 779 501 528 412 679 081 583 + 1;
  • 66 901 964 238 779 501 528 412 679 081 583 ÷ 2 = 33 450 982 119 389 750 764 206 339 540 791 + 1;
  • 33 450 982 119 389 750 764 206 339 540 791 ÷ 2 = 16 725 491 059 694 875 382 103 169 770 395 + 1;
  • 16 725 491 059 694 875 382 103 169 770 395 ÷ 2 = 8 362 745 529 847 437 691 051 584 885 197 + 1;
  • 8 362 745 529 847 437 691 051 584 885 197 ÷ 2 = 4 181 372 764 923 718 845 525 792 442 598 + 1;
  • 4 181 372 764 923 718 845 525 792 442 598 ÷ 2 = 2 090 686 382 461 859 422 762 896 221 299 + 0;
  • 2 090 686 382 461 859 422 762 896 221 299 ÷ 2 = 1 045 343 191 230 929 711 381 448 110 649 + 1;
  • 1 045 343 191 230 929 711 381 448 110 649 ÷ 2 = 522 671 595 615 464 855 690 724 055 324 + 1;
  • 522 671 595 615 464 855 690 724 055 324 ÷ 2 = 261 335 797 807 732 427 845 362 027 662 + 0;
  • 261 335 797 807 732 427 845 362 027 662 ÷ 2 = 130 667 898 903 866 213 922 681 013 831 + 0;
  • 130 667 898 903 866 213 922 681 013 831 ÷ 2 = 65 333 949 451 933 106 961 340 506 915 + 1;
  • 65 333 949 451 933 106 961 340 506 915 ÷ 2 = 32 666 974 725 966 553 480 670 253 457 + 1;
  • 32 666 974 725 966 553 480 670 253 457 ÷ 2 = 16 333 487 362 983 276 740 335 126 728 + 1;
  • 16 333 487 362 983 276 740 335 126 728 ÷ 2 = 8 166 743 681 491 638 370 167 563 364 + 0;
  • 8 166 743 681 491 638 370 167 563 364 ÷ 2 = 4 083 371 840 745 819 185 083 781 682 + 0;
  • 4 083 371 840 745 819 185 083 781 682 ÷ 2 = 2 041 685 920 372 909 592 541 890 841 + 0;
  • 2 041 685 920 372 909 592 541 890 841 ÷ 2 = 1 020 842 960 186 454 796 270 945 420 + 1;
  • 1 020 842 960 186 454 796 270 945 420 ÷ 2 = 510 421 480 093 227 398 135 472 710 + 0;
  • 510 421 480 093 227 398 135 472 710 ÷ 2 = 255 210 740 046 613 699 067 736 355 + 0;
  • 255 210 740 046 613 699 067 736 355 ÷ 2 = 127 605 370 023 306 849 533 868 177 + 1;
  • 127 605 370 023 306 849 533 868 177 ÷ 2 = 63 802 685 011 653 424 766 934 088 + 1;
  • 63 802 685 011 653 424 766 934 088 ÷ 2 = 31 901 342 505 826 712 383 467 044 + 0;
  • 31 901 342 505 826 712 383 467 044 ÷ 2 = 15 950 671 252 913 356 191 733 522 + 0;
  • 15 950 671 252 913 356 191 733 522 ÷ 2 = 7 975 335 626 456 678 095 866 761 + 0;
  • 7 975 335 626 456 678 095 866 761 ÷ 2 = 3 987 667 813 228 339 047 933 380 + 1;
  • 3 987 667 813 228 339 047 933 380 ÷ 2 = 1 993 833 906 614 169 523 966 690 + 0;
  • 1 993 833 906 614 169 523 966 690 ÷ 2 = 996 916 953 307 084 761 983 345 + 0;
  • 996 916 953 307 084 761 983 345 ÷ 2 = 498 458 476 653 542 380 991 672 + 1;
  • 498 458 476 653 542 380 991 672 ÷ 2 = 249 229 238 326 771 190 495 836 + 0;
  • 249 229 238 326 771 190 495 836 ÷ 2 = 124 614 619 163 385 595 247 918 + 0;
  • 124 614 619 163 385 595 247 918 ÷ 2 = 62 307 309 581 692 797 623 959 + 0;
  • 62 307 309 581 692 797 623 959 ÷ 2 = 31 153 654 790 846 398 811 979 + 1;
  • 31 153 654 790 846 398 811 979 ÷ 2 = 15 576 827 395 423 199 405 989 + 1;
  • 15 576 827 395 423 199 405 989 ÷ 2 = 7 788 413 697 711 599 702 994 + 1;
  • 7 788 413 697 711 599 702 994 ÷ 2 = 3 894 206 848 855 799 851 497 + 0;
  • 3 894 206 848 855 799 851 497 ÷ 2 = 1 947 103 424 427 899 925 748 + 1;
  • 1 947 103 424 427 899 925 748 ÷ 2 = 973 551 712 213 949 962 874 + 0;
  • 973 551 712 213 949 962 874 ÷ 2 = 486 775 856 106 974 981 437 + 0;
  • 486 775 856 106 974 981 437 ÷ 2 = 243 387 928 053 487 490 718 + 1;
  • 243 387 928 053 487 490 718 ÷ 2 = 121 693 964 026 743 745 359 + 0;
  • 121 693 964 026 743 745 359 ÷ 2 = 60 846 982 013 371 872 679 + 1;
  • 60 846 982 013 371 872 679 ÷ 2 = 30 423 491 006 685 936 339 + 1;
  • 30 423 491 006 685 936 339 ÷ 2 = 15 211 745 503 342 968 169 + 1;
  • 15 211 745 503 342 968 169 ÷ 2 = 7 605 872 751 671 484 084 + 1;
  • 7 605 872 751 671 484 084 ÷ 2 = 3 802 936 375 835 742 042 + 0;
  • 3 802 936 375 835 742 042 ÷ 2 = 1 901 468 187 917 871 021 + 0;
  • 1 901 468 187 917 871 021 ÷ 2 = 950 734 093 958 935 510 + 1;
  • 950 734 093 958 935 510 ÷ 2 = 475 367 046 979 467 755 + 0;
  • 475 367 046 979 467 755 ÷ 2 = 237 683 523 489 733 877 + 1;
  • 237 683 523 489 733 877 ÷ 2 = 118 841 761 744 866 938 + 1;
  • 118 841 761 744 866 938 ÷ 2 = 59 420 880 872 433 469 + 0;
  • 59 420 880 872 433 469 ÷ 2 = 29 710 440 436 216 734 + 1;
  • 29 710 440 436 216 734 ÷ 2 = 14 855 220 218 108 367 + 0;
  • 14 855 220 218 108 367 ÷ 2 = 7 427 610 109 054 183 + 1;
  • 7 427 610 109 054 183 ÷ 2 = 3 713 805 054 527 091 + 1;
  • 3 713 805 054 527 091 ÷ 2 = 1 856 902 527 263 545 + 1;
  • 1 856 902 527 263 545 ÷ 2 = 928 451 263 631 772 + 1;
  • 928 451 263 631 772 ÷ 2 = 464 225 631 815 886 + 0;
  • 464 225 631 815 886 ÷ 2 = 232 112 815 907 943 + 0;
  • 232 112 815 907 943 ÷ 2 = 116 056 407 953 971 + 1;
  • 116 056 407 953 971 ÷ 2 = 58 028 203 976 985 + 1;
  • 58 028 203 976 985 ÷ 2 = 29 014 101 988 492 + 1;
  • 29 014 101 988 492 ÷ 2 = 14 507 050 994 246 + 0;
  • 14 507 050 994 246 ÷ 2 = 7 253 525 497 123 + 0;
  • 7 253 525 497 123 ÷ 2 = 3 626 762 748 561 + 1;
  • 3 626 762 748 561 ÷ 2 = 1 813 381 374 280 + 1;
  • 1 813 381 374 280 ÷ 2 = 906 690 687 140 + 0;
  • 906 690 687 140 ÷ 2 = 453 345 343 570 + 0;
  • 453 345 343 570 ÷ 2 = 226 672 671 785 + 0;
  • 226 672 671 785 ÷ 2 = 113 336 335 892 + 1;
  • 113 336 335 892 ÷ 2 = 56 668 167 946 + 0;
  • 56 668 167 946 ÷ 2 = 28 334 083 973 + 0;
  • 28 334 083 973 ÷ 2 = 14 167 041 986 + 1;
  • 14 167 041 986 ÷ 2 = 7 083 520 993 + 0;
  • 7 083 520 993 ÷ 2 = 3 541 760 496 + 1;
  • 3 541 760 496 ÷ 2 = 1 770 880 248 + 0;
  • 1 770 880 248 ÷ 2 = 885 440 124 + 0;
  • 885 440 124 ÷ 2 = 442 720 062 + 0;
  • 442 720 062 ÷ 2 = 221 360 031 + 0;
  • 221 360 031 ÷ 2 = 110 680 015 + 1;
  • 110 680 015 ÷ 2 = 55 340 007 + 1;
  • 55 340 007 ÷ 2 = 27 670 003 + 1;
  • 27 670 003 ÷ 2 = 13 835 001 + 1;
  • 13 835 001 ÷ 2 = 6 917 500 + 1;
  • 6 917 500 ÷ 2 = 3 458 750 + 0;
  • 3 458 750 ÷ 2 = 1 729 375 + 0;
  • 1 729 375 ÷ 2 = 864 687 + 1;
  • 864 687 ÷ 2 = 432 343 + 1;
  • 432 343 ÷ 2 = 216 171 + 1;
  • 216 171 ÷ 2 = 108 085 + 1;
  • 108 085 ÷ 2 = 54 042 + 1;
  • 54 042 ÷ 2 = 27 021 + 0;
  • 27 021 ÷ 2 = 13 510 + 1;
  • 13 510 ÷ 2 = 6 755 + 0;
  • 6 755 ÷ 2 = 3 377 + 1;
  • 3 377 ÷ 2 = 1 688 + 1;
  • 1 688 ÷ 2 = 844 + 0;
  • 844 ÷ 2 = 422 + 0;
  • 422 ÷ 2 = 211 + 0;
  • 211 ÷ 2 = 105 + 1;
  • 105 ÷ 2 = 52 + 1;
  • 52 ÷ 2 = 26 + 0;
  • 26 ÷ 2 = 13 + 0;
  • 13 ÷ 2 = 6 + 1;
  • 6 ÷ 2 = 3 + 0;
  • 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.

1 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021(10) =


11 0100 1100 0110 1011 1110 0111 1100 0010 1001 0001 1001 1100 1111 0101 1010 0111 1010 0101 1100 0100 1000 1100 1000 1110 0110 1111 1000 1111 1101 1100 0000 1000 0001 0111 0010 0101 0000 1100 0000 0001 0001 1101(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 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021(10) =


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


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


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


1010 0110 0011 0101 1111 0011 1110 0001 0100 1000 1100 1110 0111


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) =
1010 0110 0011 0101 1111 0011 1110 0001 0100 1000 1100 1110 0111


Decimal number 1 234 123 412 341 234 123 412 341 234 123 412 341 234 123 412 341 021 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 1010 1000 - 1010 0110 0011 0101 1111 0011 1110 0001 0100 1000 1100 1110 0111


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