1 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556(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 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556(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 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556 ÷ 2 = 832 907 337 655 945 552 511 403 582 564 465 500 585 023 732 644 778 + 0;
  • 832 907 337 655 945 552 511 403 582 564 465 500 585 023 732 644 778 ÷ 2 = 416 453 668 827 972 776 255 701 791 282 232 750 292 511 866 322 389 + 0;
  • 416 453 668 827 972 776 255 701 791 282 232 750 292 511 866 322 389 ÷ 2 = 208 226 834 413 986 388 127 850 895 641 116 375 146 255 933 161 194 + 1;
  • 208 226 834 413 986 388 127 850 895 641 116 375 146 255 933 161 194 ÷ 2 = 104 113 417 206 993 194 063 925 447 820 558 187 573 127 966 580 597 + 0;
  • 104 113 417 206 993 194 063 925 447 820 558 187 573 127 966 580 597 ÷ 2 = 52 056 708 603 496 597 031 962 723 910 279 093 786 563 983 290 298 + 1;
  • 52 056 708 603 496 597 031 962 723 910 279 093 786 563 983 290 298 ÷ 2 = 26 028 354 301 748 298 515 981 361 955 139 546 893 281 991 645 149 + 0;
  • 26 028 354 301 748 298 515 981 361 955 139 546 893 281 991 645 149 ÷ 2 = 13 014 177 150 874 149 257 990 680 977 569 773 446 640 995 822 574 + 1;
  • 13 014 177 150 874 149 257 990 680 977 569 773 446 640 995 822 574 ÷ 2 = 6 507 088 575 437 074 628 995 340 488 784 886 723 320 497 911 287 + 0;
  • 6 507 088 575 437 074 628 995 340 488 784 886 723 320 497 911 287 ÷ 2 = 3 253 544 287 718 537 314 497 670 244 392 443 361 660 248 955 643 + 1;
  • 3 253 544 287 718 537 314 497 670 244 392 443 361 660 248 955 643 ÷ 2 = 1 626 772 143 859 268 657 248 835 122 196 221 680 830 124 477 821 + 1;
  • 1 626 772 143 859 268 657 248 835 122 196 221 680 830 124 477 821 ÷ 2 = 813 386 071 929 634 328 624 417 561 098 110 840 415 062 238 910 + 1;
  • 813 386 071 929 634 328 624 417 561 098 110 840 415 062 238 910 ÷ 2 = 406 693 035 964 817 164 312 208 780 549 055 420 207 531 119 455 + 0;
  • 406 693 035 964 817 164 312 208 780 549 055 420 207 531 119 455 ÷ 2 = 203 346 517 982 408 582 156 104 390 274 527 710 103 765 559 727 + 1;
  • 203 346 517 982 408 582 156 104 390 274 527 710 103 765 559 727 ÷ 2 = 101 673 258 991 204 291 078 052 195 137 263 855 051 882 779 863 + 1;
  • 101 673 258 991 204 291 078 052 195 137 263 855 051 882 779 863 ÷ 2 = 50 836 629 495 602 145 539 026 097 568 631 927 525 941 389 931 + 1;
  • 50 836 629 495 602 145 539 026 097 568 631 927 525 941 389 931 ÷ 2 = 25 418 314 747 801 072 769 513 048 784 315 963 762 970 694 965 + 1;
  • 25 418 314 747 801 072 769 513 048 784 315 963 762 970 694 965 ÷ 2 = 12 709 157 373 900 536 384 756 524 392 157 981 881 485 347 482 + 1;
  • 12 709 157 373 900 536 384 756 524 392 157 981 881 485 347 482 ÷ 2 = 6 354 578 686 950 268 192 378 262 196 078 990 940 742 673 741 + 0;
  • 6 354 578 686 950 268 192 378 262 196 078 990 940 742 673 741 ÷ 2 = 3 177 289 343 475 134 096 189 131 098 039 495 470 371 336 870 + 1;
  • 3 177 289 343 475 134 096 189 131 098 039 495 470 371 336 870 ÷ 2 = 1 588 644 671 737 567 048 094 565 549 019 747 735 185 668 435 + 0;
  • 1 588 644 671 737 567 048 094 565 549 019 747 735 185 668 435 ÷ 2 = 794 322 335 868 783 524 047 282 774 509 873 867 592 834 217 + 1;
  • 794 322 335 868 783 524 047 282 774 509 873 867 592 834 217 ÷ 2 = 397 161 167 934 391 762 023 641 387 254 936 933 796 417 108 + 1;
  • 397 161 167 934 391 762 023 641 387 254 936 933 796 417 108 ÷ 2 = 198 580 583 967 195 881 011 820 693 627 468 466 898 208 554 + 0;
  • 198 580 583 967 195 881 011 820 693 627 468 466 898 208 554 ÷ 2 = 99 290 291 983 597 940 505 910 346 813 734 233 449 104 277 + 0;
  • 99 290 291 983 597 940 505 910 346 813 734 233 449 104 277 ÷ 2 = 49 645 145 991 798 970 252 955 173 406 867 116 724 552 138 + 1;
  • 49 645 145 991 798 970 252 955 173 406 867 116 724 552 138 ÷ 2 = 24 822 572 995 899 485 126 477 586 703 433 558 362 276 069 + 0;
  • 24 822 572 995 899 485 126 477 586 703 433 558 362 276 069 ÷ 2 = 12 411 286 497 949 742 563 238 793 351 716 779 181 138 034 + 1;
  • 12 411 286 497 949 742 563 238 793 351 716 779 181 138 034 ÷ 2 = 6 205 643 248 974 871 281 619 396 675 858 389 590 569 017 + 0;
  • 6 205 643 248 974 871 281 619 396 675 858 389 590 569 017 ÷ 2 = 3 102 821 624 487 435 640 809 698 337 929 194 795 284 508 + 1;
  • 3 102 821 624 487 435 640 809 698 337 929 194 795 284 508 ÷ 2 = 1 551 410 812 243 717 820 404 849 168 964 597 397 642 254 + 0;
  • 1 551 410 812 243 717 820 404 849 168 964 597 397 642 254 ÷ 2 = 775 705 406 121 858 910 202 424 584 482 298 698 821 127 + 0;
  • 775 705 406 121 858 910 202 424 584 482 298 698 821 127 ÷ 2 = 387 852 703 060 929 455 101 212 292 241 149 349 410 563 + 1;
  • 387 852 703 060 929 455 101 212 292 241 149 349 410 563 ÷ 2 = 193 926 351 530 464 727 550 606 146 120 574 674 705 281 + 1;
  • 193 926 351 530 464 727 550 606 146 120 574 674 705 281 ÷ 2 = 96 963 175 765 232 363 775 303 073 060 287 337 352 640 + 1;
  • 96 963 175 765 232 363 775 303 073 060 287 337 352 640 ÷ 2 = 48 481 587 882 616 181 887 651 536 530 143 668 676 320 + 0;
  • 48 481 587 882 616 181 887 651 536 530 143 668 676 320 ÷ 2 = 24 240 793 941 308 090 943 825 768 265 071 834 338 160 + 0;
  • 24 240 793 941 308 090 943 825 768 265 071 834 338 160 ÷ 2 = 12 120 396 970 654 045 471 912 884 132 535 917 169 080 + 0;
  • 12 120 396 970 654 045 471 912 884 132 535 917 169 080 ÷ 2 = 6 060 198 485 327 022 735 956 442 066 267 958 584 540 + 0;
  • 6 060 198 485 327 022 735 956 442 066 267 958 584 540 ÷ 2 = 3 030 099 242 663 511 367 978 221 033 133 979 292 270 + 0;
  • 3 030 099 242 663 511 367 978 221 033 133 979 292 270 ÷ 2 = 1 515 049 621 331 755 683 989 110 516 566 989 646 135 + 0;
  • 1 515 049 621 331 755 683 989 110 516 566 989 646 135 ÷ 2 = 757 524 810 665 877 841 994 555 258 283 494 823 067 + 1;
  • 757 524 810 665 877 841 994 555 258 283 494 823 067 ÷ 2 = 378 762 405 332 938 920 997 277 629 141 747 411 533 + 1;
  • 378 762 405 332 938 920 997 277 629 141 747 411 533 ÷ 2 = 189 381 202 666 469 460 498 638 814 570 873 705 766 + 1;
  • 189 381 202 666 469 460 498 638 814 570 873 705 766 ÷ 2 = 94 690 601 333 234 730 249 319 407 285 436 852 883 + 0;
  • 94 690 601 333 234 730 249 319 407 285 436 852 883 ÷ 2 = 47 345 300 666 617 365 124 659 703 642 718 426 441 + 1;
  • 47 345 300 666 617 365 124 659 703 642 718 426 441 ÷ 2 = 23 672 650 333 308 682 562 329 851 821 359 213 220 + 1;
  • 23 672 650 333 308 682 562 329 851 821 359 213 220 ÷ 2 = 11 836 325 166 654 341 281 164 925 910 679 606 610 + 0;
  • 11 836 325 166 654 341 281 164 925 910 679 606 610 ÷ 2 = 5 918 162 583 327 170 640 582 462 955 339 803 305 + 0;
  • 5 918 162 583 327 170 640 582 462 955 339 803 305 ÷ 2 = 2 959 081 291 663 585 320 291 231 477 669 901 652 + 1;
  • 2 959 081 291 663 585 320 291 231 477 669 901 652 ÷ 2 = 1 479 540 645 831 792 660 145 615 738 834 950 826 + 0;
  • 1 479 540 645 831 792 660 145 615 738 834 950 826 ÷ 2 = 739 770 322 915 896 330 072 807 869 417 475 413 + 0;
  • 739 770 322 915 896 330 072 807 869 417 475 413 ÷ 2 = 369 885 161 457 948 165 036 403 934 708 737 706 + 1;
  • 369 885 161 457 948 165 036 403 934 708 737 706 ÷ 2 = 184 942 580 728 974 082 518 201 967 354 368 853 + 0;
  • 184 942 580 728 974 082 518 201 967 354 368 853 ÷ 2 = 92 471 290 364 487 041 259 100 983 677 184 426 + 1;
  • 92 471 290 364 487 041 259 100 983 677 184 426 ÷ 2 = 46 235 645 182 243 520 629 550 491 838 592 213 + 0;
  • 46 235 645 182 243 520 629 550 491 838 592 213 ÷ 2 = 23 117 822 591 121 760 314 775 245 919 296 106 + 1;
  • 23 117 822 591 121 760 314 775 245 919 296 106 ÷ 2 = 11 558 911 295 560 880 157 387 622 959 648 053 + 0;
  • 11 558 911 295 560 880 157 387 622 959 648 053 ÷ 2 = 5 779 455 647 780 440 078 693 811 479 824 026 + 1;
  • 5 779 455 647 780 440 078 693 811 479 824 026 ÷ 2 = 2 889 727 823 890 220 039 346 905 739 912 013 + 0;
  • 2 889 727 823 890 220 039 346 905 739 912 013 ÷ 2 = 1 444 863 911 945 110 019 673 452 869 956 006 + 1;
  • 1 444 863 911 945 110 019 673 452 869 956 006 ÷ 2 = 722 431 955 972 555 009 836 726 434 978 003 + 0;
  • 722 431 955 972 555 009 836 726 434 978 003 ÷ 2 = 361 215 977 986 277 504 918 363 217 489 001 + 1;
  • 361 215 977 986 277 504 918 363 217 489 001 ÷ 2 = 180 607 988 993 138 752 459 181 608 744 500 + 1;
  • 180 607 988 993 138 752 459 181 608 744 500 ÷ 2 = 90 303 994 496 569 376 229 590 804 372 250 + 0;
  • 90 303 994 496 569 376 229 590 804 372 250 ÷ 2 = 45 151 997 248 284 688 114 795 402 186 125 + 0;
  • 45 151 997 248 284 688 114 795 402 186 125 ÷ 2 = 22 575 998 624 142 344 057 397 701 093 062 + 1;
  • 22 575 998 624 142 344 057 397 701 093 062 ÷ 2 = 11 287 999 312 071 172 028 698 850 546 531 + 0;
  • 11 287 999 312 071 172 028 698 850 546 531 ÷ 2 = 5 643 999 656 035 586 014 349 425 273 265 + 1;
  • 5 643 999 656 035 586 014 349 425 273 265 ÷ 2 = 2 821 999 828 017 793 007 174 712 636 632 + 1;
  • 2 821 999 828 017 793 007 174 712 636 632 ÷ 2 = 1 410 999 914 008 896 503 587 356 318 316 + 0;
  • 1 410 999 914 008 896 503 587 356 318 316 ÷ 2 = 705 499 957 004 448 251 793 678 159 158 + 0;
  • 705 499 957 004 448 251 793 678 159 158 ÷ 2 = 352 749 978 502 224 125 896 839 079 579 + 0;
  • 352 749 978 502 224 125 896 839 079 579 ÷ 2 = 176 374 989 251 112 062 948 419 539 789 + 1;
  • 176 374 989 251 112 062 948 419 539 789 ÷ 2 = 88 187 494 625 556 031 474 209 769 894 + 1;
  • 88 187 494 625 556 031 474 209 769 894 ÷ 2 = 44 093 747 312 778 015 737 104 884 947 + 0;
  • 44 093 747 312 778 015 737 104 884 947 ÷ 2 = 22 046 873 656 389 007 868 552 442 473 + 1;
  • 22 046 873 656 389 007 868 552 442 473 ÷ 2 = 11 023 436 828 194 503 934 276 221 236 + 1;
  • 11 023 436 828 194 503 934 276 221 236 ÷ 2 = 5 511 718 414 097 251 967 138 110 618 + 0;
  • 5 511 718 414 097 251 967 138 110 618 ÷ 2 = 2 755 859 207 048 625 983 569 055 309 + 0;
  • 2 755 859 207 048 625 983 569 055 309 ÷ 2 = 1 377 929 603 524 312 991 784 527 654 + 1;
  • 1 377 929 603 524 312 991 784 527 654 ÷ 2 = 688 964 801 762 156 495 892 263 827 + 0;
  • 688 964 801 762 156 495 892 263 827 ÷ 2 = 344 482 400 881 078 247 946 131 913 + 1;
  • 344 482 400 881 078 247 946 131 913 ÷ 2 = 172 241 200 440 539 123 973 065 956 + 1;
  • 172 241 200 440 539 123 973 065 956 ÷ 2 = 86 120 600 220 269 561 986 532 978 + 0;
  • 86 120 600 220 269 561 986 532 978 ÷ 2 = 43 060 300 110 134 780 993 266 489 + 0;
  • 43 060 300 110 134 780 993 266 489 ÷ 2 = 21 530 150 055 067 390 496 633 244 + 1;
  • 21 530 150 055 067 390 496 633 244 ÷ 2 = 10 765 075 027 533 695 248 316 622 + 0;
  • 10 765 075 027 533 695 248 316 622 ÷ 2 = 5 382 537 513 766 847 624 158 311 + 0;
  • 5 382 537 513 766 847 624 158 311 ÷ 2 = 2 691 268 756 883 423 812 079 155 + 1;
  • 2 691 268 756 883 423 812 079 155 ÷ 2 = 1 345 634 378 441 711 906 039 577 + 1;
  • 1 345 634 378 441 711 906 039 577 ÷ 2 = 672 817 189 220 855 953 019 788 + 1;
  • 672 817 189 220 855 953 019 788 ÷ 2 = 336 408 594 610 427 976 509 894 + 0;
  • 336 408 594 610 427 976 509 894 ÷ 2 = 168 204 297 305 213 988 254 947 + 0;
  • 168 204 297 305 213 988 254 947 ÷ 2 = 84 102 148 652 606 994 127 473 + 1;
  • 84 102 148 652 606 994 127 473 ÷ 2 = 42 051 074 326 303 497 063 736 + 1;
  • 42 051 074 326 303 497 063 736 ÷ 2 = 21 025 537 163 151 748 531 868 + 0;
  • 21 025 537 163 151 748 531 868 ÷ 2 = 10 512 768 581 575 874 265 934 + 0;
  • 10 512 768 581 575 874 265 934 ÷ 2 = 5 256 384 290 787 937 132 967 + 0;
  • 5 256 384 290 787 937 132 967 ÷ 2 = 2 628 192 145 393 968 566 483 + 1;
  • 2 628 192 145 393 968 566 483 ÷ 2 = 1 314 096 072 696 984 283 241 + 1;
  • 1 314 096 072 696 984 283 241 ÷ 2 = 657 048 036 348 492 141 620 + 1;
  • 657 048 036 348 492 141 620 ÷ 2 = 328 524 018 174 246 070 810 + 0;
  • 328 524 018 174 246 070 810 ÷ 2 = 164 262 009 087 123 035 405 + 0;
  • 164 262 009 087 123 035 405 ÷ 2 = 82 131 004 543 561 517 702 + 1;
  • 82 131 004 543 561 517 702 ÷ 2 = 41 065 502 271 780 758 851 + 0;
  • 41 065 502 271 780 758 851 ÷ 2 = 20 532 751 135 890 379 425 + 1;
  • 20 532 751 135 890 379 425 ÷ 2 = 10 266 375 567 945 189 712 + 1;
  • 10 266 375 567 945 189 712 ÷ 2 = 5 133 187 783 972 594 856 + 0;
  • 5 133 187 783 972 594 856 ÷ 2 = 2 566 593 891 986 297 428 + 0;
  • 2 566 593 891 986 297 428 ÷ 2 = 1 283 296 945 993 148 714 + 0;
  • 1 283 296 945 993 148 714 ÷ 2 = 641 648 472 996 574 357 + 0;
  • 641 648 472 996 574 357 ÷ 2 = 320 824 236 498 287 178 + 1;
  • 320 824 236 498 287 178 ÷ 2 = 160 412 118 249 143 589 + 0;
  • 160 412 118 249 143 589 ÷ 2 = 80 206 059 124 571 794 + 1;
  • 80 206 059 124 571 794 ÷ 2 = 40 103 029 562 285 897 + 0;
  • 40 103 029 562 285 897 ÷ 2 = 20 051 514 781 142 948 + 1;
  • 20 051 514 781 142 948 ÷ 2 = 10 025 757 390 571 474 + 0;
  • 10 025 757 390 571 474 ÷ 2 = 5 012 878 695 285 737 + 0;
  • 5 012 878 695 285 737 ÷ 2 = 2 506 439 347 642 868 + 1;
  • 2 506 439 347 642 868 ÷ 2 = 1 253 219 673 821 434 + 0;
  • 1 253 219 673 821 434 ÷ 2 = 626 609 836 910 717 + 0;
  • 626 609 836 910 717 ÷ 2 = 313 304 918 455 358 + 1;
  • 313 304 918 455 358 ÷ 2 = 156 652 459 227 679 + 0;
  • 156 652 459 227 679 ÷ 2 = 78 326 229 613 839 + 1;
  • 78 326 229 613 839 ÷ 2 = 39 163 114 806 919 + 1;
  • 39 163 114 806 919 ÷ 2 = 19 581 557 403 459 + 1;
  • 19 581 557 403 459 ÷ 2 = 9 790 778 701 729 + 1;
  • 9 790 778 701 729 ÷ 2 = 4 895 389 350 864 + 1;
  • 4 895 389 350 864 ÷ 2 = 2 447 694 675 432 + 0;
  • 2 447 694 675 432 ÷ 2 = 1 223 847 337 716 + 0;
  • 1 223 847 337 716 ÷ 2 = 611 923 668 858 + 0;
  • 611 923 668 858 ÷ 2 = 305 961 834 429 + 0;
  • 305 961 834 429 ÷ 2 = 152 980 917 214 + 1;
  • 152 980 917 214 ÷ 2 = 76 490 458 607 + 0;
  • 76 490 458 607 ÷ 2 = 38 245 229 303 + 1;
  • 38 245 229 303 ÷ 2 = 19 122 614 651 + 1;
  • 19 122 614 651 ÷ 2 = 9 561 307 325 + 1;
  • 9 561 307 325 ÷ 2 = 4 780 653 662 + 1;
  • 4 780 653 662 ÷ 2 = 2 390 326 831 + 0;
  • 2 390 326 831 ÷ 2 = 1 195 163 415 + 1;
  • 1 195 163 415 ÷ 2 = 597 581 707 + 1;
  • 597 581 707 ÷ 2 = 298 790 853 + 1;
  • 298 790 853 ÷ 2 = 149 395 426 + 1;
  • 149 395 426 ÷ 2 = 74 697 713 + 0;
  • 74 697 713 ÷ 2 = 37 348 856 + 1;
  • 37 348 856 ÷ 2 = 18 674 428 + 0;
  • 18 674 428 ÷ 2 = 9 337 214 + 0;
  • 9 337 214 ÷ 2 = 4 668 607 + 0;
  • 4 668 607 ÷ 2 = 2 334 303 + 1;
  • 2 334 303 ÷ 2 = 1 167 151 + 1;
  • 1 167 151 ÷ 2 = 583 575 + 1;
  • 583 575 ÷ 2 = 291 787 + 1;
  • 291 787 ÷ 2 = 145 893 + 1;
  • 145 893 ÷ 2 = 72 946 + 1;
  • 72 946 ÷ 2 = 36 473 + 0;
  • 36 473 ÷ 2 = 18 236 + 1;
  • 18 236 ÷ 2 = 9 118 + 0;
  • 9 118 ÷ 2 = 4 559 + 0;
  • 4 559 ÷ 2 = 2 279 + 1;
  • 2 279 ÷ 2 = 1 139 + 1;
  • 1 139 ÷ 2 = 569 + 1;
  • 569 ÷ 2 = 284 + 1;
  • 284 ÷ 2 = 142 + 0;
  • 142 ÷ 2 = 71 + 0;
  • 71 ÷ 2 = 35 + 1;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

2. Construct the base 2 representation of the positive number.

Take all the remainders starting from the bottom of the list constructed above.

1 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556(10) =


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


3. Normalize the binary representation of the number.

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


1 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556(10) =


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


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


1.0001 1100 1111 0010 1111 1100 0101 1110 1111 0100 0011 1110 1001 0010 1010 0001 1010 0111 0001 1001 1100 1001 1010 0110 1100 0110 1001 1010 1010 1010 0100 1101 1100 0000 1110 0101 0100 1101 0111 1101 1101 0101 00(2) × 2170


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


Mantissa (not normalized):
1.0001 1100 1111 0010 1111 1100 0101 1110 1111 0100 0011 1110 1001 0010 1010 0001 1010 0111 0001 1001 1100 1001 1010 0110 1100 0110 1001 1010 1010 1010 0100 1101 1100 0000 1110 0101 0100 1101 0111 1101 1101 0101 00


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


170 + 2(11-1) - 1 =


(170 + 1 023)(10) =


1 193(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 193 ÷ 2 = 596 + 1;
  • 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) =


1193(10) =


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


0001 1100 1111 0010 1111 1100 0101 1110 1111 0100 0011 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 1001


Mantissa (52 bits) =
0001 1100 1111 0010 1111 1100 0101 1110 1111 0100 0011 1110 1001


Decimal number 1 665 814 675 311 891 105 022 807 165 128 931 001 170 047 465 289 556 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 1010 1001 - 0001 1100 1111 0010 1111 1100 0101 1110 1111 0100 0011 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