110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119(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
110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119(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;
  • 110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119 ÷ 2 = 55 000 550 550 550 555 550 505 050 555 055 500 000 005 050 504 559 + 1;
  • 55 000 550 550 550 555 550 505 050 555 055 500 000 005 050 504 559 ÷ 2 = 27 500 275 275 275 277 775 252 525 277 527 750 000 002 525 252 279 + 1;
  • 27 500 275 275 275 277 775 252 525 277 527 750 000 002 525 252 279 ÷ 2 = 13 750 137 637 637 638 887 626 262 638 763 875 000 001 262 626 139 + 1;
  • 13 750 137 637 637 638 887 626 262 638 763 875 000 001 262 626 139 ÷ 2 = 6 875 068 818 818 819 443 813 131 319 381 937 500 000 631 313 069 + 1;
  • 6 875 068 818 818 819 443 813 131 319 381 937 500 000 631 313 069 ÷ 2 = 3 437 534 409 409 409 721 906 565 659 690 968 750 000 315 656 534 + 1;
  • 3 437 534 409 409 409 721 906 565 659 690 968 750 000 315 656 534 ÷ 2 = 1 718 767 204 704 704 860 953 282 829 845 484 375 000 157 828 267 + 0;
  • 1 718 767 204 704 704 860 953 282 829 845 484 375 000 157 828 267 ÷ 2 = 859 383 602 352 352 430 476 641 414 922 742 187 500 078 914 133 + 1;
  • 859 383 602 352 352 430 476 641 414 922 742 187 500 078 914 133 ÷ 2 = 429 691 801 176 176 215 238 320 707 461 371 093 750 039 457 066 + 1;
  • 429 691 801 176 176 215 238 320 707 461 371 093 750 039 457 066 ÷ 2 = 214 845 900 588 088 107 619 160 353 730 685 546 875 019 728 533 + 0;
  • 214 845 900 588 088 107 619 160 353 730 685 546 875 019 728 533 ÷ 2 = 107 422 950 294 044 053 809 580 176 865 342 773 437 509 864 266 + 1;
  • 107 422 950 294 044 053 809 580 176 865 342 773 437 509 864 266 ÷ 2 = 53 711 475 147 022 026 904 790 088 432 671 386 718 754 932 133 + 0;
  • 53 711 475 147 022 026 904 790 088 432 671 386 718 754 932 133 ÷ 2 = 26 855 737 573 511 013 452 395 044 216 335 693 359 377 466 066 + 1;
  • 26 855 737 573 511 013 452 395 044 216 335 693 359 377 466 066 ÷ 2 = 13 427 868 786 755 506 726 197 522 108 167 846 679 688 733 033 + 0;
  • 13 427 868 786 755 506 726 197 522 108 167 846 679 688 733 033 ÷ 2 = 6 713 934 393 377 753 363 098 761 054 083 923 339 844 366 516 + 1;
  • 6 713 934 393 377 753 363 098 761 054 083 923 339 844 366 516 ÷ 2 = 3 356 967 196 688 876 681 549 380 527 041 961 669 922 183 258 + 0;
  • 3 356 967 196 688 876 681 549 380 527 041 961 669 922 183 258 ÷ 2 = 1 678 483 598 344 438 340 774 690 263 520 980 834 961 091 629 + 0;
  • 1 678 483 598 344 438 340 774 690 263 520 980 834 961 091 629 ÷ 2 = 839 241 799 172 219 170 387 345 131 760 490 417 480 545 814 + 1;
  • 839 241 799 172 219 170 387 345 131 760 490 417 480 545 814 ÷ 2 = 419 620 899 586 109 585 193 672 565 880 245 208 740 272 907 + 0;
  • 419 620 899 586 109 585 193 672 565 880 245 208 740 272 907 ÷ 2 = 209 810 449 793 054 792 596 836 282 940 122 604 370 136 453 + 1;
  • 209 810 449 793 054 792 596 836 282 940 122 604 370 136 453 ÷ 2 = 104 905 224 896 527 396 298 418 141 470 061 302 185 068 226 + 1;
  • 104 905 224 896 527 396 298 418 141 470 061 302 185 068 226 ÷ 2 = 52 452 612 448 263 698 149 209 070 735 030 651 092 534 113 + 0;
  • 52 452 612 448 263 698 149 209 070 735 030 651 092 534 113 ÷ 2 = 26 226 306 224 131 849 074 604 535 367 515 325 546 267 056 + 1;
  • 26 226 306 224 131 849 074 604 535 367 515 325 546 267 056 ÷ 2 = 13 113 153 112 065 924 537 302 267 683 757 662 773 133 528 + 0;
  • 13 113 153 112 065 924 537 302 267 683 757 662 773 133 528 ÷ 2 = 6 556 576 556 032 962 268 651 133 841 878 831 386 566 764 + 0;
  • 6 556 576 556 032 962 268 651 133 841 878 831 386 566 764 ÷ 2 = 3 278 288 278 016 481 134 325 566 920 939 415 693 283 382 + 0;
  • 3 278 288 278 016 481 134 325 566 920 939 415 693 283 382 ÷ 2 = 1 639 144 139 008 240 567 162 783 460 469 707 846 641 691 + 0;
  • 1 639 144 139 008 240 567 162 783 460 469 707 846 641 691 ÷ 2 = 819 572 069 504 120 283 581 391 730 234 853 923 320 845 + 1;
  • 819 572 069 504 120 283 581 391 730 234 853 923 320 845 ÷ 2 = 409 786 034 752 060 141 790 695 865 117 426 961 660 422 + 1;
  • 409 786 034 752 060 141 790 695 865 117 426 961 660 422 ÷ 2 = 204 893 017 376 030 070 895 347 932 558 713 480 830 211 + 0;
  • 204 893 017 376 030 070 895 347 932 558 713 480 830 211 ÷ 2 = 102 446 508 688 015 035 447 673 966 279 356 740 415 105 + 1;
  • 102 446 508 688 015 035 447 673 966 279 356 740 415 105 ÷ 2 = 51 223 254 344 007 517 723 836 983 139 678 370 207 552 + 1;
  • 51 223 254 344 007 517 723 836 983 139 678 370 207 552 ÷ 2 = 25 611 627 172 003 758 861 918 491 569 839 185 103 776 + 0;
  • 25 611 627 172 003 758 861 918 491 569 839 185 103 776 ÷ 2 = 12 805 813 586 001 879 430 959 245 784 919 592 551 888 + 0;
  • 12 805 813 586 001 879 430 959 245 784 919 592 551 888 ÷ 2 = 6 402 906 793 000 939 715 479 622 892 459 796 275 944 + 0;
  • 6 402 906 793 000 939 715 479 622 892 459 796 275 944 ÷ 2 = 3 201 453 396 500 469 857 739 811 446 229 898 137 972 + 0;
  • 3 201 453 396 500 469 857 739 811 446 229 898 137 972 ÷ 2 = 1 600 726 698 250 234 928 869 905 723 114 949 068 986 + 0;
  • 1 600 726 698 250 234 928 869 905 723 114 949 068 986 ÷ 2 = 800 363 349 125 117 464 434 952 861 557 474 534 493 + 0;
  • 800 363 349 125 117 464 434 952 861 557 474 534 493 ÷ 2 = 400 181 674 562 558 732 217 476 430 778 737 267 246 + 1;
  • 400 181 674 562 558 732 217 476 430 778 737 267 246 ÷ 2 = 200 090 837 281 279 366 108 738 215 389 368 633 623 + 0;
  • 200 090 837 281 279 366 108 738 215 389 368 633 623 ÷ 2 = 100 045 418 640 639 683 054 369 107 694 684 316 811 + 1;
  • 100 045 418 640 639 683 054 369 107 694 684 316 811 ÷ 2 = 50 022 709 320 319 841 527 184 553 847 342 158 405 + 1;
  • 50 022 709 320 319 841 527 184 553 847 342 158 405 ÷ 2 = 25 011 354 660 159 920 763 592 276 923 671 079 202 + 1;
  • 25 011 354 660 159 920 763 592 276 923 671 079 202 ÷ 2 = 12 505 677 330 079 960 381 796 138 461 835 539 601 + 0;
  • 12 505 677 330 079 960 381 796 138 461 835 539 601 ÷ 2 = 6 252 838 665 039 980 190 898 069 230 917 769 800 + 1;
  • 6 252 838 665 039 980 190 898 069 230 917 769 800 ÷ 2 = 3 126 419 332 519 990 095 449 034 615 458 884 900 + 0;
  • 3 126 419 332 519 990 095 449 034 615 458 884 900 ÷ 2 = 1 563 209 666 259 995 047 724 517 307 729 442 450 + 0;
  • 1 563 209 666 259 995 047 724 517 307 729 442 450 ÷ 2 = 781 604 833 129 997 523 862 258 653 864 721 225 + 0;
  • 781 604 833 129 997 523 862 258 653 864 721 225 ÷ 2 = 390 802 416 564 998 761 931 129 326 932 360 612 + 1;
  • 390 802 416 564 998 761 931 129 326 932 360 612 ÷ 2 = 195 401 208 282 499 380 965 564 663 466 180 306 + 0;
  • 195 401 208 282 499 380 965 564 663 466 180 306 ÷ 2 = 97 700 604 141 249 690 482 782 331 733 090 153 + 0;
  • 97 700 604 141 249 690 482 782 331 733 090 153 ÷ 2 = 48 850 302 070 624 845 241 391 165 866 545 076 + 1;
  • 48 850 302 070 624 845 241 391 165 866 545 076 ÷ 2 = 24 425 151 035 312 422 620 695 582 933 272 538 + 0;
  • 24 425 151 035 312 422 620 695 582 933 272 538 ÷ 2 = 12 212 575 517 656 211 310 347 791 466 636 269 + 0;
  • 12 212 575 517 656 211 310 347 791 466 636 269 ÷ 2 = 6 106 287 758 828 105 655 173 895 733 318 134 + 1;
  • 6 106 287 758 828 105 655 173 895 733 318 134 ÷ 2 = 3 053 143 879 414 052 827 586 947 866 659 067 + 0;
  • 3 053 143 879 414 052 827 586 947 866 659 067 ÷ 2 = 1 526 571 939 707 026 413 793 473 933 329 533 + 1;
  • 1 526 571 939 707 026 413 793 473 933 329 533 ÷ 2 = 763 285 969 853 513 206 896 736 966 664 766 + 1;
  • 763 285 969 853 513 206 896 736 966 664 766 ÷ 2 = 381 642 984 926 756 603 448 368 483 332 383 + 0;
  • 381 642 984 926 756 603 448 368 483 332 383 ÷ 2 = 190 821 492 463 378 301 724 184 241 666 191 + 1;
  • 190 821 492 463 378 301 724 184 241 666 191 ÷ 2 = 95 410 746 231 689 150 862 092 120 833 095 + 1;
  • 95 410 746 231 689 150 862 092 120 833 095 ÷ 2 = 47 705 373 115 844 575 431 046 060 416 547 + 1;
  • 47 705 373 115 844 575 431 046 060 416 547 ÷ 2 = 23 852 686 557 922 287 715 523 030 208 273 + 1;
  • 23 852 686 557 922 287 715 523 030 208 273 ÷ 2 = 11 926 343 278 961 143 857 761 515 104 136 + 1;
  • 11 926 343 278 961 143 857 761 515 104 136 ÷ 2 = 5 963 171 639 480 571 928 880 757 552 068 + 0;
  • 5 963 171 639 480 571 928 880 757 552 068 ÷ 2 = 2 981 585 819 740 285 964 440 378 776 034 + 0;
  • 2 981 585 819 740 285 964 440 378 776 034 ÷ 2 = 1 490 792 909 870 142 982 220 189 388 017 + 0;
  • 1 490 792 909 870 142 982 220 189 388 017 ÷ 2 = 745 396 454 935 071 491 110 094 694 008 + 1;
  • 745 396 454 935 071 491 110 094 694 008 ÷ 2 = 372 698 227 467 535 745 555 047 347 004 + 0;
  • 372 698 227 467 535 745 555 047 347 004 ÷ 2 = 186 349 113 733 767 872 777 523 673 502 + 0;
  • 186 349 113 733 767 872 777 523 673 502 ÷ 2 = 93 174 556 866 883 936 388 761 836 751 + 0;
  • 93 174 556 866 883 936 388 761 836 751 ÷ 2 = 46 587 278 433 441 968 194 380 918 375 + 1;
  • 46 587 278 433 441 968 194 380 918 375 ÷ 2 = 23 293 639 216 720 984 097 190 459 187 + 1;
  • 23 293 639 216 720 984 097 190 459 187 ÷ 2 = 11 646 819 608 360 492 048 595 229 593 + 1;
  • 11 646 819 608 360 492 048 595 229 593 ÷ 2 = 5 823 409 804 180 246 024 297 614 796 + 1;
  • 5 823 409 804 180 246 024 297 614 796 ÷ 2 = 2 911 704 902 090 123 012 148 807 398 + 0;
  • 2 911 704 902 090 123 012 148 807 398 ÷ 2 = 1 455 852 451 045 061 506 074 403 699 + 0;
  • 1 455 852 451 045 061 506 074 403 699 ÷ 2 = 727 926 225 522 530 753 037 201 849 + 1;
  • 727 926 225 522 530 753 037 201 849 ÷ 2 = 363 963 112 761 265 376 518 600 924 + 1;
  • 363 963 112 761 265 376 518 600 924 ÷ 2 = 181 981 556 380 632 688 259 300 462 + 0;
  • 181 981 556 380 632 688 259 300 462 ÷ 2 = 90 990 778 190 316 344 129 650 231 + 0;
  • 90 990 778 190 316 344 129 650 231 ÷ 2 = 45 495 389 095 158 172 064 825 115 + 1;
  • 45 495 389 095 158 172 064 825 115 ÷ 2 = 22 747 694 547 579 086 032 412 557 + 1;
  • 22 747 694 547 579 086 032 412 557 ÷ 2 = 11 373 847 273 789 543 016 206 278 + 1;
  • 11 373 847 273 789 543 016 206 278 ÷ 2 = 5 686 923 636 894 771 508 103 139 + 0;
  • 5 686 923 636 894 771 508 103 139 ÷ 2 = 2 843 461 818 447 385 754 051 569 + 1;
  • 2 843 461 818 447 385 754 051 569 ÷ 2 = 1 421 730 909 223 692 877 025 784 + 1;
  • 1 421 730 909 223 692 877 025 784 ÷ 2 = 710 865 454 611 846 438 512 892 + 0;
  • 710 865 454 611 846 438 512 892 ÷ 2 = 355 432 727 305 923 219 256 446 + 0;
  • 355 432 727 305 923 219 256 446 ÷ 2 = 177 716 363 652 961 609 628 223 + 0;
  • 177 716 363 652 961 609 628 223 ÷ 2 = 88 858 181 826 480 804 814 111 + 1;
  • 88 858 181 826 480 804 814 111 ÷ 2 = 44 429 090 913 240 402 407 055 + 1;
  • 44 429 090 913 240 402 407 055 ÷ 2 = 22 214 545 456 620 201 203 527 + 1;
  • 22 214 545 456 620 201 203 527 ÷ 2 = 11 107 272 728 310 100 601 763 + 1;
  • 11 107 272 728 310 100 601 763 ÷ 2 = 5 553 636 364 155 050 300 881 + 1;
  • 5 553 636 364 155 050 300 881 ÷ 2 = 2 776 818 182 077 525 150 440 + 1;
  • 2 776 818 182 077 525 150 440 ÷ 2 = 1 388 409 091 038 762 575 220 + 0;
  • 1 388 409 091 038 762 575 220 ÷ 2 = 694 204 545 519 381 287 610 + 0;
  • 694 204 545 519 381 287 610 ÷ 2 = 347 102 272 759 690 643 805 + 0;
  • 347 102 272 759 690 643 805 ÷ 2 = 173 551 136 379 845 321 902 + 1;
  • 173 551 136 379 845 321 902 ÷ 2 = 86 775 568 189 922 660 951 + 0;
  • 86 775 568 189 922 660 951 ÷ 2 = 43 387 784 094 961 330 475 + 1;
  • 43 387 784 094 961 330 475 ÷ 2 = 21 693 892 047 480 665 237 + 1;
  • 21 693 892 047 480 665 237 ÷ 2 = 10 846 946 023 740 332 618 + 1;
  • 10 846 946 023 740 332 618 ÷ 2 = 5 423 473 011 870 166 309 + 0;
  • 5 423 473 011 870 166 309 ÷ 2 = 2 711 736 505 935 083 154 + 1;
  • 2 711 736 505 935 083 154 ÷ 2 = 1 355 868 252 967 541 577 + 0;
  • 1 355 868 252 967 541 577 ÷ 2 = 677 934 126 483 770 788 + 1;
  • 677 934 126 483 770 788 ÷ 2 = 338 967 063 241 885 394 + 0;
  • 338 967 063 241 885 394 ÷ 2 = 169 483 531 620 942 697 + 0;
  • 169 483 531 620 942 697 ÷ 2 = 84 741 765 810 471 348 + 1;
  • 84 741 765 810 471 348 ÷ 2 = 42 370 882 905 235 674 + 0;
  • 42 370 882 905 235 674 ÷ 2 = 21 185 441 452 617 837 + 0;
  • 21 185 441 452 617 837 ÷ 2 = 10 592 720 726 308 918 + 1;
  • 10 592 720 726 308 918 ÷ 2 = 5 296 360 363 154 459 + 0;
  • 5 296 360 363 154 459 ÷ 2 = 2 648 180 181 577 229 + 1;
  • 2 648 180 181 577 229 ÷ 2 = 1 324 090 090 788 614 + 1;
  • 1 324 090 090 788 614 ÷ 2 = 662 045 045 394 307 + 0;
  • 662 045 045 394 307 ÷ 2 = 331 022 522 697 153 + 1;
  • 331 022 522 697 153 ÷ 2 = 165 511 261 348 576 + 1;
  • 165 511 261 348 576 ÷ 2 = 82 755 630 674 288 + 0;
  • 82 755 630 674 288 ÷ 2 = 41 377 815 337 144 + 0;
  • 41 377 815 337 144 ÷ 2 = 20 688 907 668 572 + 0;
  • 20 688 907 668 572 ÷ 2 = 10 344 453 834 286 + 0;
  • 10 344 453 834 286 ÷ 2 = 5 172 226 917 143 + 0;
  • 5 172 226 917 143 ÷ 2 = 2 586 113 458 571 + 1;
  • 2 586 113 458 571 ÷ 2 = 1 293 056 729 285 + 1;
  • 1 293 056 729 285 ÷ 2 = 646 528 364 642 + 1;
  • 646 528 364 642 ÷ 2 = 323 264 182 321 + 0;
  • 323 264 182 321 ÷ 2 = 161 632 091 160 + 1;
  • 161 632 091 160 ÷ 2 = 80 816 045 580 + 0;
  • 80 816 045 580 ÷ 2 = 40 408 022 790 + 0;
  • 40 408 022 790 ÷ 2 = 20 204 011 395 + 0;
  • 20 204 011 395 ÷ 2 = 10 102 005 697 + 1;
  • 10 102 005 697 ÷ 2 = 5 051 002 848 + 1;
  • 5 051 002 848 ÷ 2 = 2 525 501 424 + 0;
  • 2 525 501 424 ÷ 2 = 1 262 750 712 + 0;
  • 1 262 750 712 ÷ 2 = 631 375 356 + 0;
  • 631 375 356 ÷ 2 = 315 687 678 + 0;
  • 315 687 678 ÷ 2 = 157 843 839 + 0;
  • 157 843 839 ÷ 2 = 78 921 919 + 1;
  • 78 921 919 ÷ 2 = 39 460 959 + 1;
  • 39 460 959 ÷ 2 = 19 730 479 + 1;
  • 19 730 479 ÷ 2 = 9 865 239 + 1;
  • 9 865 239 ÷ 2 = 4 932 619 + 1;
  • 4 932 619 ÷ 2 = 2 466 309 + 1;
  • 2 466 309 ÷ 2 = 1 233 154 + 1;
  • 1 233 154 ÷ 2 = 616 577 + 0;
  • 616 577 ÷ 2 = 308 288 + 1;
  • 308 288 ÷ 2 = 154 144 + 0;
  • 154 144 ÷ 2 = 77 072 + 0;
  • 77 072 ÷ 2 = 38 536 + 0;
  • 38 536 ÷ 2 = 19 268 + 0;
  • 19 268 ÷ 2 = 9 634 + 0;
  • 9 634 ÷ 2 = 4 817 + 0;
  • 4 817 ÷ 2 = 2 408 + 1;
  • 2 408 ÷ 2 = 1 204 + 0;
  • 1 204 ÷ 2 = 602 + 0;
  • 602 ÷ 2 = 301 + 0;
  • 301 ÷ 2 = 150 + 1;
  • 150 ÷ 2 = 75 + 0;
  • 75 ÷ 2 = 37 + 1;
  • 37 ÷ 2 = 18 + 1;
  • 18 ÷ 2 = 9 + 0;
  • 9 ÷ 2 = 4 + 1;
  • 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.

110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119(10) =


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


3. Normalize the binary representation of the number.

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


110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119(10) =


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


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


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


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


Mantissa (not normalized):
1.0010 1101 0001 0000 0010 1111 1110 0000 1100 0101 1100 0001 1011 0100 1001 0101 1101 0001 1111 1000 1101 1100 1100 1111 0001 0001 1111 0110 1001 0010 0010 1110 1000 0001 1011 0000 1011 0100 1010 1011 0111 11


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


166 + 2(11-1) - 1 =


(166 + 1 023)(10) =


1 189(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 189 ÷ 2 = 594 + 1;
  • 594 ÷ 2 = 297 + 0;
  • 297 ÷ 2 = 148 + 1;
  • 148 ÷ 2 = 74 + 0;
  • 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) =


1189(10) =


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


0010 1101 0001 0000 0010 1111 1110 0000 1100 0101 1100 0001 1011


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 0101


Mantissa (52 bits) =
0010 1101 0001 0000 0010 1111 1110 0000 1100 0101 1100 0001 1011


Decimal number 110 001 101 101 101 111 101 010 101 110 111 000 000 010 101 009 119 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 1010 0101 - 0010 1101 0001 0000 0010 1111 1110 0000 1100 0101 1100 0001 1011

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