100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601 scris ca binar pe 64 biți, precizie dublă, virgulă mobilă în standard IEEE 754

Scriere 100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601(10) din zecimal în binar pe 64 de biți, precizie dublă, în virgulă mobilă în standard IEEE 754 (1 bit pentru semn, 11 biți pentru exponent, 52 de biți pentru mantisă)

Care sunt pașii pentru a scrie numărul
100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601(10) din zecimal în binar în reprezentarea pe 64 biți, precizie dublă, în virgulă mobilă în standard IEEE 754 (1 bit pentru semn, 11 biți pentru exponent, 52 de biți pentru mantisă)

1. Împarte numărul în mod repetat la 2.

Notăm mai jos, în ordine, fiecare rest al împărțirilor.

Ne oprim când obținem un cât egal cu zero.


  • împărțire = cât + rest;
  • 100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601 : 2 = 50 000 050 550 500 500 500 000 055 000 550 550 000 505 550 500 055 050 300 + 1;
  • 50 000 050 550 500 500 500 000 055 000 550 550 000 505 550 500 055 050 300 : 2 = 25 000 025 275 250 250 250 000 027 500 275 275 000 252 775 250 027 525 150 + 0;
  • 25 000 025 275 250 250 250 000 027 500 275 275 000 252 775 250 027 525 150 : 2 = 12 500 012 637 625 125 125 000 013 750 137 637 500 126 387 625 013 762 575 + 0;
  • 12 500 012 637 625 125 125 000 013 750 137 637 500 126 387 625 013 762 575 : 2 = 6 250 006 318 812 562 562 500 006 875 068 818 750 063 193 812 506 881 287 + 1;
  • 6 250 006 318 812 562 562 500 006 875 068 818 750 063 193 812 506 881 287 : 2 = 3 125 003 159 406 281 281 250 003 437 534 409 375 031 596 906 253 440 643 + 1;
  • 3 125 003 159 406 281 281 250 003 437 534 409 375 031 596 906 253 440 643 : 2 = 1 562 501 579 703 140 640 625 001 718 767 204 687 515 798 453 126 720 321 + 1;
  • 1 562 501 579 703 140 640 625 001 718 767 204 687 515 798 453 126 720 321 : 2 = 781 250 789 851 570 320 312 500 859 383 602 343 757 899 226 563 360 160 + 1;
  • 781 250 789 851 570 320 312 500 859 383 602 343 757 899 226 563 360 160 : 2 = 390 625 394 925 785 160 156 250 429 691 801 171 878 949 613 281 680 080 + 0;
  • 390 625 394 925 785 160 156 250 429 691 801 171 878 949 613 281 680 080 : 2 = 195 312 697 462 892 580 078 125 214 845 900 585 939 474 806 640 840 040 + 0;
  • 195 312 697 462 892 580 078 125 214 845 900 585 939 474 806 640 840 040 : 2 = 97 656 348 731 446 290 039 062 607 422 950 292 969 737 403 320 420 020 + 0;
  • 97 656 348 731 446 290 039 062 607 422 950 292 969 737 403 320 420 020 : 2 = 48 828 174 365 723 145 019 531 303 711 475 146 484 868 701 660 210 010 + 0;
  • 48 828 174 365 723 145 019 531 303 711 475 146 484 868 701 660 210 010 : 2 = 24 414 087 182 861 572 509 765 651 855 737 573 242 434 350 830 105 005 + 0;
  • 24 414 087 182 861 572 509 765 651 855 737 573 242 434 350 830 105 005 : 2 = 12 207 043 591 430 786 254 882 825 927 868 786 621 217 175 415 052 502 + 1;
  • 12 207 043 591 430 786 254 882 825 927 868 786 621 217 175 415 052 502 : 2 = 6 103 521 795 715 393 127 441 412 963 934 393 310 608 587 707 526 251 + 0;
  • 6 103 521 795 715 393 127 441 412 963 934 393 310 608 587 707 526 251 : 2 = 3 051 760 897 857 696 563 720 706 481 967 196 655 304 293 853 763 125 + 1;
  • 3 051 760 897 857 696 563 720 706 481 967 196 655 304 293 853 763 125 : 2 = 1 525 880 448 928 848 281 860 353 240 983 598 327 652 146 926 881 562 + 1;
  • 1 525 880 448 928 848 281 860 353 240 983 598 327 652 146 926 881 562 : 2 = 762 940 224 464 424 140 930 176 620 491 799 163 826 073 463 440 781 + 0;
  • 762 940 224 464 424 140 930 176 620 491 799 163 826 073 463 440 781 : 2 = 381 470 112 232 212 070 465 088 310 245 899 581 913 036 731 720 390 + 1;
  • 381 470 112 232 212 070 465 088 310 245 899 581 913 036 731 720 390 : 2 = 190 735 056 116 106 035 232 544 155 122 949 790 956 518 365 860 195 + 0;
  • 190 735 056 116 106 035 232 544 155 122 949 790 956 518 365 860 195 : 2 = 95 367 528 058 053 017 616 272 077 561 474 895 478 259 182 930 097 + 1;
  • 95 367 528 058 053 017 616 272 077 561 474 895 478 259 182 930 097 : 2 = 47 683 764 029 026 508 808 136 038 780 737 447 739 129 591 465 048 + 1;
  • 47 683 764 029 026 508 808 136 038 780 737 447 739 129 591 465 048 : 2 = 23 841 882 014 513 254 404 068 019 390 368 723 869 564 795 732 524 + 0;
  • 23 841 882 014 513 254 404 068 019 390 368 723 869 564 795 732 524 : 2 = 11 920 941 007 256 627 202 034 009 695 184 361 934 782 397 866 262 + 0;
  • 11 920 941 007 256 627 202 034 009 695 184 361 934 782 397 866 262 : 2 = 5 960 470 503 628 313 601 017 004 847 592 180 967 391 198 933 131 + 0;
  • 5 960 470 503 628 313 601 017 004 847 592 180 967 391 198 933 131 : 2 = 2 980 235 251 814 156 800 508 502 423 796 090 483 695 599 466 565 + 1;
  • 2 980 235 251 814 156 800 508 502 423 796 090 483 695 599 466 565 : 2 = 1 490 117 625 907 078 400 254 251 211 898 045 241 847 799 733 282 + 1;
  • 1 490 117 625 907 078 400 254 251 211 898 045 241 847 799 733 282 : 2 = 745 058 812 953 539 200 127 125 605 949 022 620 923 899 866 641 + 0;
  • 745 058 812 953 539 200 127 125 605 949 022 620 923 899 866 641 : 2 = 372 529 406 476 769 600 063 562 802 974 511 310 461 949 933 320 + 1;
  • 372 529 406 476 769 600 063 562 802 974 511 310 461 949 933 320 : 2 = 186 264 703 238 384 800 031 781 401 487 255 655 230 974 966 660 + 0;
  • 186 264 703 238 384 800 031 781 401 487 255 655 230 974 966 660 : 2 = 93 132 351 619 192 400 015 890 700 743 627 827 615 487 483 330 + 0;
  • 93 132 351 619 192 400 015 890 700 743 627 827 615 487 483 330 : 2 = 46 566 175 809 596 200 007 945 350 371 813 913 807 743 741 665 + 0;
  • 46 566 175 809 596 200 007 945 350 371 813 913 807 743 741 665 : 2 = 23 283 087 904 798 100 003 972 675 185 906 956 903 871 870 832 + 1;
  • 23 283 087 904 798 100 003 972 675 185 906 956 903 871 870 832 : 2 = 11 641 543 952 399 050 001 986 337 592 953 478 451 935 935 416 + 0;
  • 11 641 543 952 399 050 001 986 337 592 953 478 451 935 935 416 : 2 = 5 820 771 976 199 525 000 993 168 796 476 739 225 967 967 708 + 0;
  • 5 820 771 976 199 525 000 993 168 796 476 739 225 967 967 708 : 2 = 2 910 385 988 099 762 500 496 584 398 238 369 612 983 983 854 + 0;
  • 2 910 385 988 099 762 500 496 584 398 238 369 612 983 983 854 : 2 = 1 455 192 994 049 881 250 248 292 199 119 184 806 491 991 927 + 0;
  • 1 455 192 994 049 881 250 248 292 199 119 184 806 491 991 927 : 2 = 727 596 497 024 940 625 124 146 099 559 592 403 245 995 963 + 1;
  • 727 596 497 024 940 625 124 146 099 559 592 403 245 995 963 : 2 = 363 798 248 512 470 312 562 073 049 779 796 201 622 997 981 + 1;
  • 363 798 248 512 470 312 562 073 049 779 796 201 622 997 981 : 2 = 181 899 124 256 235 156 281 036 524 889 898 100 811 498 990 + 1;
  • 181 899 124 256 235 156 281 036 524 889 898 100 811 498 990 : 2 = 90 949 562 128 117 578 140 518 262 444 949 050 405 749 495 + 0;
  • 90 949 562 128 117 578 140 518 262 444 949 050 405 749 495 : 2 = 45 474 781 064 058 789 070 259 131 222 474 525 202 874 747 + 1;
  • 45 474 781 064 058 789 070 259 131 222 474 525 202 874 747 : 2 = 22 737 390 532 029 394 535 129 565 611 237 262 601 437 373 + 1;
  • 22 737 390 532 029 394 535 129 565 611 237 262 601 437 373 : 2 = 11 368 695 266 014 697 267 564 782 805 618 631 300 718 686 + 1;
  • 11 368 695 266 014 697 267 564 782 805 618 631 300 718 686 : 2 = 5 684 347 633 007 348 633 782 391 402 809 315 650 359 343 + 0;
  • 5 684 347 633 007 348 633 782 391 402 809 315 650 359 343 : 2 = 2 842 173 816 503 674 316 891 195 701 404 657 825 179 671 + 1;
  • 2 842 173 816 503 674 316 891 195 701 404 657 825 179 671 : 2 = 1 421 086 908 251 837 158 445 597 850 702 328 912 589 835 + 1;
  • 1 421 086 908 251 837 158 445 597 850 702 328 912 589 835 : 2 = 710 543 454 125 918 579 222 798 925 351 164 456 294 917 + 1;
  • 710 543 454 125 918 579 222 798 925 351 164 456 294 917 : 2 = 355 271 727 062 959 289 611 399 462 675 582 228 147 458 + 1;
  • 355 271 727 062 959 289 611 399 462 675 582 228 147 458 : 2 = 177 635 863 531 479 644 805 699 731 337 791 114 073 729 + 0;
  • 177 635 863 531 479 644 805 699 731 337 791 114 073 729 : 2 = 88 817 931 765 739 822 402 849 865 668 895 557 036 864 + 1;
  • 88 817 931 765 739 822 402 849 865 668 895 557 036 864 : 2 = 44 408 965 882 869 911 201 424 932 834 447 778 518 432 + 0;
  • 44 408 965 882 869 911 201 424 932 834 447 778 518 432 : 2 = 22 204 482 941 434 955 600 712 466 417 223 889 259 216 + 0;
  • 22 204 482 941 434 955 600 712 466 417 223 889 259 216 : 2 = 11 102 241 470 717 477 800 356 233 208 611 944 629 608 + 0;
  • 11 102 241 470 717 477 800 356 233 208 611 944 629 608 : 2 = 5 551 120 735 358 738 900 178 116 604 305 972 314 804 + 0;
  • 5 551 120 735 358 738 900 178 116 604 305 972 314 804 : 2 = 2 775 560 367 679 369 450 089 058 302 152 986 157 402 + 0;
  • 2 775 560 367 679 369 450 089 058 302 152 986 157 402 : 2 = 1 387 780 183 839 684 725 044 529 151 076 493 078 701 + 0;
  • 1 387 780 183 839 684 725 044 529 151 076 493 078 701 : 2 = 693 890 091 919 842 362 522 264 575 538 246 539 350 + 1;
  • 693 890 091 919 842 362 522 264 575 538 246 539 350 : 2 = 346 945 045 959 921 181 261 132 287 769 123 269 675 + 0;
  • 346 945 045 959 921 181 261 132 287 769 123 269 675 : 2 = 173 472 522 979 960 590 630 566 143 884 561 634 837 + 1;
  • 173 472 522 979 960 590 630 566 143 884 561 634 837 : 2 = 86 736 261 489 980 295 315 283 071 942 280 817 418 + 1;
  • 86 736 261 489 980 295 315 283 071 942 280 817 418 : 2 = 43 368 130 744 990 147 657 641 535 971 140 408 709 + 0;
  • 43 368 130 744 990 147 657 641 535 971 140 408 709 : 2 = 21 684 065 372 495 073 828 820 767 985 570 204 354 + 1;
  • 21 684 065 372 495 073 828 820 767 985 570 204 354 : 2 = 10 842 032 686 247 536 914 410 383 992 785 102 177 + 0;
  • 10 842 032 686 247 536 914 410 383 992 785 102 177 : 2 = 5 421 016 343 123 768 457 205 191 996 392 551 088 + 1;
  • 5 421 016 343 123 768 457 205 191 996 392 551 088 : 2 = 2 710 508 171 561 884 228 602 595 998 196 275 544 + 0;
  • 2 710 508 171 561 884 228 602 595 998 196 275 544 : 2 = 1 355 254 085 780 942 114 301 297 999 098 137 772 + 0;
  • 1 355 254 085 780 942 114 301 297 999 098 137 772 : 2 = 677 627 042 890 471 057 150 648 999 549 068 886 + 0;
  • 677 627 042 890 471 057 150 648 999 549 068 886 : 2 = 338 813 521 445 235 528 575 324 499 774 534 443 + 0;
  • 338 813 521 445 235 528 575 324 499 774 534 443 : 2 = 169 406 760 722 617 764 287 662 249 887 267 221 + 1;
  • 169 406 760 722 617 764 287 662 249 887 267 221 : 2 = 84 703 380 361 308 882 143 831 124 943 633 610 + 1;
  • 84 703 380 361 308 882 143 831 124 943 633 610 : 2 = 42 351 690 180 654 441 071 915 562 471 816 805 + 0;
  • 42 351 690 180 654 441 071 915 562 471 816 805 : 2 = 21 175 845 090 327 220 535 957 781 235 908 402 + 1;
  • 21 175 845 090 327 220 535 957 781 235 908 402 : 2 = 10 587 922 545 163 610 267 978 890 617 954 201 + 0;
  • 10 587 922 545 163 610 267 978 890 617 954 201 : 2 = 5 293 961 272 581 805 133 989 445 308 977 100 + 1;
  • 5 293 961 272 581 805 133 989 445 308 977 100 : 2 = 2 646 980 636 290 902 566 994 722 654 488 550 + 0;
  • 2 646 980 636 290 902 566 994 722 654 488 550 : 2 = 1 323 490 318 145 451 283 497 361 327 244 275 + 0;
  • 1 323 490 318 145 451 283 497 361 327 244 275 : 2 = 661 745 159 072 725 641 748 680 663 622 137 + 1;
  • 661 745 159 072 725 641 748 680 663 622 137 : 2 = 330 872 579 536 362 820 874 340 331 811 068 + 1;
  • 330 872 579 536 362 820 874 340 331 811 068 : 2 = 165 436 289 768 181 410 437 170 165 905 534 + 0;
  • 165 436 289 768 181 410 437 170 165 905 534 : 2 = 82 718 144 884 090 705 218 585 082 952 767 + 0;
  • 82 718 144 884 090 705 218 585 082 952 767 : 2 = 41 359 072 442 045 352 609 292 541 476 383 + 1;
  • 41 359 072 442 045 352 609 292 541 476 383 : 2 = 20 679 536 221 022 676 304 646 270 738 191 + 1;
  • 20 679 536 221 022 676 304 646 270 738 191 : 2 = 10 339 768 110 511 338 152 323 135 369 095 + 1;
  • 10 339 768 110 511 338 152 323 135 369 095 : 2 = 5 169 884 055 255 669 076 161 567 684 547 + 1;
  • 5 169 884 055 255 669 076 161 567 684 547 : 2 = 2 584 942 027 627 834 538 080 783 842 273 + 1;
  • 2 584 942 027 627 834 538 080 783 842 273 : 2 = 1 292 471 013 813 917 269 040 391 921 136 + 1;
  • 1 292 471 013 813 917 269 040 391 921 136 : 2 = 646 235 506 906 958 634 520 195 960 568 + 0;
  • 646 235 506 906 958 634 520 195 960 568 : 2 = 323 117 753 453 479 317 260 097 980 284 + 0;
  • 323 117 753 453 479 317 260 097 980 284 : 2 = 161 558 876 726 739 658 630 048 990 142 + 0;
  • 161 558 876 726 739 658 630 048 990 142 : 2 = 80 779 438 363 369 829 315 024 495 071 + 0;
  • 80 779 438 363 369 829 315 024 495 071 : 2 = 40 389 719 181 684 914 657 512 247 535 + 1;
  • 40 389 719 181 684 914 657 512 247 535 : 2 = 20 194 859 590 842 457 328 756 123 767 + 1;
  • 20 194 859 590 842 457 328 756 123 767 : 2 = 10 097 429 795 421 228 664 378 061 883 + 1;
  • 10 097 429 795 421 228 664 378 061 883 : 2 = 5 048 714 897 710 614 332 189 030 941 + 1;
  • 5 048 714 897 710 614 332 189 030 941 : 2 = 2 524 357 448 855 307 166 094 515 470 + 1;
  • 2 524 357 448 855 307 166 094 515 470 : 2 = 1 262 178 724 427 653 583 047 257 735 + 0;
  • 1 262 178 724 427 653 583 047 257 735 : 2 = 631 089 362 213 826 791 523 628 867 + 1;
  • 631 089 362 213 826 791 523 628 867 : 2 = 315 544 681 106 913 395 761 814 433 + 1;
  • 315 544 681 106 913 395 761 814 433 : 2 = 157 772 340 553 456 697 880 907 216 + 1;
  • 157 772 340 553 456 697 880 907 216 : 2 = 78 886 170 276 728 348 940 453 608 + 0;
  • 78 886 170 276 728 348 940 453 608 : 2 = 39 443 085 138 364 174 470 226 804 + 0;
  • 39 443 085 138 364 174 470 226 804 : 2 = 19 721 542 569 182 087 235 113 402 + 0;
  • 19 721 542 569 182 087 235 113 402 : 2 = 9 860 771 284 591 043 617 556 701 + 0;
  • 9 860 771 284 591 043 617 556 701 : 2 = 4 930 385 642 295 521 808 778 350 + 1;
  • 4 930 385 642 295 521 808 778 350 : 2 = 2 465 192 821 147 760 904 389 175 + 0;
  • 2 465 192 821 147 760 904 389 175 : 2 = 1 232 596 410 573 880 452 194 587 + 1;
  • 1 232 596 410 573 880 452 194 587 : 2 = 616 298 205 286 940 226 097 293 + 1;
  • 616 298 205 286 940 226 097 293 : 2 = 308 149 102 643 470 113 048 646 + 1;
  • 308 149 102 643 470 113 048 646 : 2 = 154 074 551 321 735 056 524 323 + 0;
  • 154 074 551 321 735 056 524 323 : 2 = 77 037 275 660 867 528 262 161 + 1;
  • 77 037 275 660 867 528 262 161 : 2 = 38 518 637 830 433 764 131 080 + 1;
  • 38 518 637 830 433 764 131 080 : 2 = 19 259 318 915 216 882 065 540 + 0;
  • 19 259 318 915 216 882 065 540 : 2 = 9 629 659 457 608 441 032 770 + 0;
  • 9 629 659 457 608 441 032 770 : 2 = 4 814 829 728 804 220 516 385 + 0;
  • 4 814 829 728 804 220 516 385 : 2 = 2 407 414 864 402 110 258 192 + 1;
  • 2 407 414 864 402 110 258 192 : 2 = 1 203 707 432 201 055 129 096 + 0;
  • 1 203 707 432 201 055 129 096 : 2 = 601 853 716 100 527 564 548 + 0;
  • 601 853 716 100 527 564 548 : 2 = 300 926 858 050 263 782 274 + 0;
  • 300 926 858 050 263 782 274 : 2 = 150 463 429 025 131 891 137 + 0;
  • 150 463 429 025 131 891 137 : 2 = 75 231 714 512 565 945 568 + 1;
  • 75 231 714 512 565 945 568 : 2 = 37 615 857 256 282 972 784 + 0;
  • 37 615 857 256 282 972 784 : 2 = 18 807 928 628 141 486 392 + 0;
  • 18 807 928 628 141 486 392 : 2 = 9 403 964 314 070 743 196 + 0;
  • 9 403 964 314 070 743 196 : 2 = 4 701 982 157 035 371 598 + 0;
  • 4 701 982 157 035 371 598 : 2 = 2 350 991 078 517 685 799 + 0;
  • 2 350 991 078 517 685 799 : 2 = 1 175 495 539 258 842 899 + 1;
  • 1 175 495 539 258 842 899 : 2 = 587 747 769 629 421 449 + 1;
  • 587 747 769 629 421 449 : 2 = 293 873 884 814 710 724 + 1;
  • 293 873 884 814 710 724 : 2 = 146 936 942 407 355 362 + 0;
  • 146 936 942 407 355 362 : 2 = 73 468 471 203 677 681 + 0;
  • 73 468 471 203 677 681 : 2 = 36 734 235 601 838 840 + 1;
  • 36 734 235 601 838 840 : 2 = 18 367 117 800 919 420 + 0;
  • 18 367 117 800 919 420 : 2 = 9 183 558 900 459 710 + 0;
  • 9 183 558 900 459 710 : 2 = 4 591 779 450 229 855 + 0;
  • 4 591 779 450 229 855 : 2 = 2 295 889 725 114 927 + 1;
  • 2 295 889 725 114 927 : 2 = 1 147 944 862 557 463 + 1;
  • 1 147 944 862 557 463 : 2 = 573 972 431 278 731 + 1;
  • 573 972 431 278 731 : 2 = 286 986 215 639 365 + 1;
  • 286 986 215 639 365 : 2 = 143 493 107 819 682 + 1;
  • 143 493 107 819 682 : 2 = 71 746 553 909 841 + 0;
  • 71 746 553 909 841 : 2 = 35 873 276 954 920 + 1;
  • 35 873 276 954 920 : 2 = 17 936 638 477 460 + 0;
  • 17 936 638 477 460 : 2 = 8 968 319 238 730 + 0;
  • 8 968 319 238 730 : 2 = 4 484 159 619 365 + 0;
  • 4 484 159 619 365 : 2 = 2 242 079 809 682 + 1;
  • 2 242 079 809 682 : 2 = 1 121 039 904 841 + 0;
  • 1 121 039 904 841 : 2 = 560 519 952 420 + 1;
  • 560 519 952 420 : 2 = 280 259 976 210 + 0;
  • 280 259 976 210 : 2 = 140 129 988 105 + 0;
  • 140 129 988 105 : 2 = 70 064 994 052 + 1;
  • 70 064 994 052 : 2 = 35 032 497 026 + 0;
  • 35 032 497 026 : 2 = 17 516 248 513 + 0;
  • 17 516 248 513 : 2 = 8 758 124 256 + 1;
  • 8 758 124 256 : 2 = 4 379 062 128 + 0;
  • 4 379 062 128 : 2 = 2 189 531 064 + 0;
  • 2 189 531 064 : 2 = 1 094 765 532 + 0;
  • 1 094 765 532 : 2 = 547 382 766 + 0;
  • 547 382 766 : 2 = 273 691 383 + 0;
  • 273 691 383 : 2 = 136 845 691 + 1;
  • 136 845 691 : 2 = 68 422 845 + 1;
  • 68 422 845 : 2 = 34 211 422 + 1;
  • 34 211 422 : 2 = 17 105 711 + 0;
  • 17 105 711 : 2 = 8 552 855 + 1;
  • 8 552 855 : 2 = 4 276 427 + 1;
  • 4 276 427 : 2 = 2 138 213 + 1;
  • 2 138 213 : 2 = 1 069 106 + 1;
  • 1 069 106 : 2 = 534 553 + 0;
  • 534 553 : 2 = 267 276 + 1;
  • 267 276 : 2 = 133 638 + 0;
  • 133 638 : 2 = 66 819 + 0;
  • 66 819 : 2 = 33 409 + 1;
  • 33 409 : 2 = 16 704 + 1;
  • 16 704 : 2 = 8 352 + 0;
  • 8 352 : 2 = 4 176 + 0;
  • 4 176 : 2 = 2 088 + 0;
  • 2 088 : 2 = 1 044 + 0;
  • 1 044 : 2 = 522 + 0;
  • 522 : 2 = 261 + 0;
  • 261 : 2 = 130 + 1;
  • 130 : 2 = 65 + 0;
  • 65 : 2 = 32 + 1;
  • 32 : 2 = 16 + 0;
  • 16 : 2 = 8 + 0;
  • 8 : 2 = 4 + 0;
  • 4 : 2 = 2 + 0;
  • 2 : 2 = 1 + 0;
  • 1 : 2 = 0 + 1;

2. Construiește reprezentarea numărului pozitiv în baza 2.

Ia fiecare rest al împărțirilor începând din partea de jos a listei construite mai sus.

100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601(10) =


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


3. Normalizează reprezentarea binară a numărului.

Mută virgula cu 186 poziții la stânga, astfel încât partea întreagă a acestuia să aibă un singur bit, diferit de 0:


100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601(10) =


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


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


1,0000 0101 0000 0011 0010 1111 0111 0000 0100 1001 0100 0101 1111 0001 0011 1000 0010 0001 0001 1011 1010 0001 1101 1111 0000 1111 1100 1100 1010 1100 0010 1011 0100 0000 1011 1101 1101 1100 0010 0010 1100 0110 1011 0100 0001 1110 01(2) × 2186


4. Până la acest moment avem următoarele elemente ce vor alcătui numărul binar în reprezentare IEEE 754, precizie dublă (64 biți):

Semn 0 (un număr pozitiv)


Exponent (neajustat): 186


Mantisă (nenormalizată):
1,0000 0101 0000 0011 0010 1111 0111 0000 0100 1001 0100 0101 1111 0001 0011 1000 0010 0001 0001 1011 1010 0001 1101 1111 0000 1111 1100 1100 1010 1100 0010 1011 0100 0000 1011 1101 1101 1100 0010 0010 1100 0110 1011 0100 0001 1110 01


5. Ajustează exponentul.

Folosește reprezentarea deplasată pe 11 biți:


Exponent (ajustat) =


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


186 + 2(11-1) - 1 =


(186 + 1 023)(10) =


1 209(10)


6. Convertește exponentul ajustat din zecimal (baza 10) în binar pe 11 biți.

Folosește din nou tehnica împărțirii repetate la 2:


  • împărțire = cât + rest;
  • 1 209 : 2 = 604 + 1;
  • 604 : 2 = 302 + 0;
  • 302 : 2 = 151 + 0;
  • 151 : 2 = 75 + 1;
  • 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;

7. Construiește reprezentarea în baza 2 a exponentului ajustat.

Ia fiecare rest al împărțirilor începând din partea de jos a listei construite mai sus.


Exponent (ajustat) =


1209(10) =


100 1011 1001(2)


8. Normalizează mantisa.

a) Renunță la primul bit, cel mai din stânga, care e întotdeauna 1, și la separatorul zecimal, dacă e cazul.


b) Ajustează-i lungimea la 52 biți, prin renunțarea la biții în exces, din dreapta (dacă măcar unul din acești biți în exces e setat pe 1, se pierde din precizie...).


Mantisă (normalizată) =


1. 0000 0101 0000 0011 0010 1111 0111 0000 0100 1001 0100 0101 1111 00 0100 1110 0000 1000 0100 0110 1110 1000 0111 0111 1100 0011 1111 0011 0010 1011 0000 1010 1101 0000 0010 1111 0111 0111 0000 1000 1011 0001 1010 1101 0000 0111 1001 =


0000 0101 0000 0011 0010 1111 0111 0000 0100 1001 0100 0101 1111


9. Cele trei elemente care alcătuiesc reprezentarea numărului în sistem binar pe 64 de biți, precizie dublă, în virgulă mobilă în standard IEEE 754:

Semn (1 bit) =
0 (un număr pozitiv)


Exponent (11 biți) =
100 1011 1001


Mantisă (52 biți) =
0000 0101 0000 0011 0010 1111 0111 0000 0100 1001 0100 0101 1111


Numărul zecimal 100 000 101 101 001 001 000 000 110 001 101 100 001 011 101 000 110 100 601 scris în binar în representarea pe 64 biți, precizie dublă, în virgulă mobilă în standard IEEE 754:

0 - 100 1011 1001 - 0000 0101 0000 0011 0010 1111 0111 0000 0100 1001 0100 0101 1111


Cum să convertești numere zecimale din sistem zecimal (baza 10) în sistem binar în virgulă mobilă în reprezentarea IEEE 754, precizie dublă pe 64 de biți

Urmează pașii de mai jos pentru a converti un număr zecimal (cu virgulă) din baza zece în sistem binar în virgulă mobilă în reprezentarea IEEE 754, precizie dublă pe 64 de biți:

  • 1. Dacă numărul de convertit e negativ, începe cu versiunea pozitivă a numărului.
  • 2. Convertește întâi partea întreagă, împarte în mod repetat la 2 reprezentarea pozitivă a numărului întreg cu semn care trebuie convertit în sistem binar, ținând minte fiecare rest al împărțirilor. Atunci când găsim un CÂT care e egal cu ZERO => STOP
  • 3. Construiește apoi reprezentarea în baza 2 a părții întregi a numărului, luând fiecare rest al împărțirilor efectuate, începând din partea de jos a listei construite mai sus. Astfel, ultimul rest al împărțirilor de la punctul de mai sus devine primul simbol (situat cel mai la stânga) al numărului în baza doi, în timp ce primul rest devine ultimul simbol (situat cel mai la dreapta).
  • 4. Convertește apoi partea fracționară. Înmulțește partea fracționara în mod repetat cu 2, până se obține o parte fracționară egală cu zero, ținând minte fiecare parte întreagă a înmulțirilor.
  • 5. Construiește reprezentarea în baza 2 a părții fracționare a numărului, luând fiecare parte întreagă a rezultatelor înmulțirilor efectuate, începând din partea de sus a listei construite mai sus (se iau părțile întregi în ordinea în care au fost obținute).
  • 6. Normalizează reprezentarea binară a numărului, mutând virgula cu "n" poziții fie la stânga, fie la dreapta, astfel încât partea întreagă a numărului binar să aibă un singur bit, diferit de '0' (la stânga semnului zecimal să rămână un singur simbol, egal cu 1).
  • 7. Ajustează exponentul folosind reprezentarea deplasată pe 11 biți apoi convertește-l din zecimal (baza 10) în binar pe 11 biți, folosind tehnica împărțirii repetate la 2, așa cum am mai arătat mai sus:
    Exponent (ajustat) = Exponent (neajustat) + 2(11-1) - 1;
  • 8. Normalizează mantisa, renunțând la primul bit (cel mai din stânga), care este întotdeauna '1' (și la semnul zecimal, dacă e cazul) și ajustându-i lungimea, la 52 biți, fie renunțând la biții în exces din dreapta (pierzând precizie...), fie adaugând tot la dreapta biți setați pe '0'.
  • Semnul (ocupă 1 bit) e egal fie cu 1, dacă e număr negativ, fie cu 0, dacă e număr pozitiv.

Exemplu: convertește numărul negativ -31,640 215 din sistem zecimal (baza zece) în sistem binar în virgulă mobilă în reprezentarea IEEE 754, precizie dublă pe 64 de biți:

  • 1. Începe cu versiunea pozitivă a numărului:

    |-31,640 215| = 31,640 215;

  • 2. Convertește întâi partea întreagă, 31. Împarte numărul 31 în mod repetat la 2, ținând minte fiecare rest al împărțirilor, până obținem un cât care este egal cu zero:
    • împărțire = cât + rest;
    • 31 : 2 = 15 + 1;
    • 15 : 2 = 7 + 1;
    • 7 : 2 = 3 + 1;
    • 3 : 2 = 1 + 1;
    • 1 : 2 = 0 + 1;
    • Am obținut un cât care este egal cu ZERO => STOP
  • 3. Construiește reprezentarea în baza 2 a părții întregi a numărului, luând fiecare rest al împărțirilor începând din partea de jos a listei construite mai sus:

    31(10) = 1 1111(2)

  • 4. Convertește apoi partea fracționară 0,640 215. Înmulțește în mod repetat cu 2, ținând minte fiecare parte întreagă a înmulțirilor, până obținem o parte fracționară egală cu zero:
    • #) înmulțire = întreg + fracționar;
    • 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;
    • Nicio parte fracționară egală cu zero n-a fost obținută prin calcule. Însă am efectuat un număr suficient de iterații (peste limita de Mantisă = 52) și a fost calculată măcar o parte întreagă diferită de zero => STOP (pierzând precizie...).
  • 5. Construiește reprezentarea în baza 2 a părții fracționare a numărului, luând fiecare parte întreagă a rezultatelor înmulțirilor efectuate anterior, începând din partea de sus a listei construite:

    0,640 215(10) = 0,1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2)

  • 6. Recapitulare - numărul pozitiv înainte de normalizare:

    31,640 215(10) = 1 1111,1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2)

  • 7. Normalizează reprezentarea binară a numărului, mutând virgula cu 4 poziții la stânga astfel încât partea întreagă a acestuia să aibă un singur bit, diferit de '0':

    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. Până la acest moment avem următoarele elemente ce vor alcătui numărul binar în reprezentare IEEE 754, precizie dublă (64 biți):

    Semn: 1 (număr negativ);

    Exponent (neajustat): 4;

    Mantisă (nenormalizată): 1,1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0;

  • 9. Ajustează exponentul folosind reprezentarea deplasată pe 11 biți apoi convertește-l din zecimal (baza 10) în binar pe 11 biți, folosind tehnica împărțirii repetate la 2, așa cum am mai arătat mai sus:

    Exponent (ajustat) = Exponent (neajustat) + 2(11-1) - 1 = (4 + 1023)(10) = 1027(10) =
    100 0000 0011(2)

  • 10. Normalizează mantisa, renunțând la primul bit (cel mai din stânga), care e întotdeauna '1' (și la semnul zecimal) și ajustându-i lungimea, la 52 biți, prin renunțarea la biții în exces, din dreapta (pierzând precizie...):

    Mantisă (nenormalizată): 1,1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0

    Mantisă (normalizată): 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100

  • Concluzia:

    Semn (1 bit) = 1 (număr negativ)

    Exponent (11 biți) = 100 0000 0011

    Mantisă (52 biți) = 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100

  • Numărul -31,640 215, zecimal, convertit din sistem zecimal (baza 10) în binar pe 64 de biți, precizie dublă, în virgulă mobilă în standard IEEE 754 este:
    1 - 100 0000 0011 - 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100