10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579 scris ca binar pe 64 biți, precizie dublă, virgulă mobilă în standard IEEE 754

Scriere 10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579(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
10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579(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;
  • 10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579 : 2 = 5 000 000 050 000 000 000 050 000 000 500 000 000 000 005 000 000 049 789 + 1;
  • 5 000 000 050 000 000 000 050 000 000 500 000 000 000 005 000 000 049 789 : 2 = 2 500 000 025 000 000 000 025 000 000 250 000 000 000 002 500 000 024 894 + 1;
  • 2 500 000 025 000 000 000 025 000 000 250 000 000 000 002 500 000 024 894 : 2 = 1 250 000 012 500 000 000 012 500 000 125 000 000 000 001 250 000 012 447 + 0;
  • 1 250 000 012 500 000 000 012 500 000 125 000 000 000 001 250 000 012 447 : 2 = 625 000 006 250 000 000 006 250 000 062 500 000 000 000 625 000 006 223 + 1;
  • 625 000 006 250 000 000 006 250 000 062 500 000 000 000 625 000 006 223 : 2 = 312 500 003 125 000 000 003 125 000 031 250 000 000 000 312 500 003 111 + 1;
  • 312 500 003 125 000 000 003 125 000 031 250 000 000 000 312 500 003 111 : 2 = 156 250 001 562 500 000 001 562 500 015 625 000 000 000 156 250 001 555 + 1;
  • 156 250 001 562 500 000 001 562 500 015 625 000 000 000 156 250 001 555 : 2 = 78 125 000 781 250 000 000 781 250 007 812 500 000 000 078 125 000 777 + 1;
  • 78 125 000 781 250 000 000 781 250 007 812 500 000 000 078 125 000 777 : 2 = 39 062 500 390 625 000 000 390 625 003 906 250 000 000 039 062 500 388 + 1;
  • 39 062 500 390 625 000 000 390 625 003 906 250 000 000 039 062 500 388 : 2 = 19 531 250 195 312 500 000 195 312 501 953 125 000 000 019 531 250 194 + 0;
  • 19 531 250 195 312 500 000 195 312 501 953 125 000 000 019 531 250 194 : 2 = 9 765 625 097 656 250 000 097 656 250 976 562 500 000 009 765 625 097 + 0;
  • 9 765 625 097 656 250 000 097 656 250 976 562 500 000 009 765 625 097 : 2 = 4 882 812 548 828 125 000 048 828 125 488 281 250 000 004 882 812 548 + 1;
  • 4 882 812 548 828 125 000 048 828 125 488 281 250 000 004 882 812 548 : 2 = 2 441 406 274 414 062 500 024 414 062 744 140 625 000 002 441 406 274 + 0;
  • 2 441 406 274 414 062 500 024 414 062 744 140 625 000 002 441 406 274 : 2 = 1 220 703 137 207 031 250 012 207 031 372 070 312 500 001 220 703 137 + 0;
  • 1 220 703 137 207 031 250 012 207 031 372 070 312 500 001 220 703 137 : 2 = 610 351 568 603 515 625 006 103 515 686 035 156 250 000 610 351 568 + 1;
  • 610 351 568 603 515 625 006 103 515 686 035 156 250 000 610 351 568 : 2 = 305 175 784 301 757 812 503 051 757 843 017 578 125 000 305 175 784 + 0;
  • 305 175 784 301 757 812 503 051 757 843 017 578 125 000 305 175 784 : 2 = 152 587 892 150 878 906 251 525 878 921 508 789 062 500 152 587 892 + 0;
  • 152 587 892 150 878 906 251 525 878 921 508 789 062 500 152 587 892 : 2 = 76 293 946 075 439 453 125 762 939 460 754 394 531 250 076 293 946 + 0;
  • 76 293 946 075 439 453 125 762 939 460 754 394 531 250 076 293 946 : 2 = 38 146 973 037 719 726 562 881 469 730 377 197 265 625 038 146 973 + 0;
  • 38 146 973 037 719 726 562 881 469 730 377 197 265 625 038 146 973 : 2 = 19 073 486 518 859 863 281 440 734 865 188 598 632 812 519 073 486 + 1;
  • 19 073 486 518 859 863 281 440 734 865 188 598 632 812 519 073 486 : 2 = 9 536 743 259 429 931 640 720 367 432 594 299 316 406 259 536 743 + 0;
  • 9 536 743 259 429 931 640 720 367 432 594 299 316 406 259 536 743 : 2 = 4 768 371 629 714 965 820 360 183 716 297 149 658 203 129 768 371 + 1;
  • 4 768 371 629 714 965 820 360 183 716 297 149 658 203 129 768 371 : 2 = 2 384 185 814 857 482 910 180 091 858 148 574 829 101 564 884 185 + 1;
  • 2 384 185 814 857 482 910 180 091 858 148 574 829 101 564 884 185 : 2 = 1 192 092 907 428 741 455 090 045 929 074 287 414 550 782 442 092 + 1;
  • 1 192 092 907 428 741 455 090 045 929 074 287 414 550 782 442 092 : 2 = 596 046 453 714 370 727 545 022 964 537 143 707 275 391 221 046 + 0;
  • 596 046 453 714 370 727 545 022 964 537 143 707 275 391 221 046 : 2 = 298 023 226 857 185 363 772 511 482 268 571 853 637 695 610 523 + 0;
  • 298 023 226 857 185 363 772 511 482 268 571 853 637 695 610 523 : 2 = 149 011 613 428 592 681 886 255 741 134 285 926 818 847 805 261 + 1;
  • 149 011 613 428 592 681 886 255 741 134 285 926 818 847 805 261 : 2 = 74 505 806 714 296 340 943 127 870 567 142 963 409 423 902 630 + 1;
  • 74 505 806 714 296 340 943 127 870 567 142 963 409 423 902 630 : 2 = 37 252 903 357 148 170 471 563 935 283 571 481 704 711 951 315 + 0;
  • 37 252 903 357 148 170 471 563 935 283 571 481 704 711 951 315 : 2 = 18 626 451 678 574 085 235 781 967 641 785 740 852 355 975 657 + 1;
  • 18 626 451 678 574 085 235 781 967 641 785 740 852 355 975 657 : 2 = 9 313 225 839 287 042 617 890 983 820 892 870 426 177 987 828 + 1;
  • 9 313 225 839 287 042 617 890 983 820 892 870 426 177 987 828 : 2 = 4 656 612 919 643 521 308 945 491 910 446 435 213 088 993 914 + 0;
  • 4 656 612 919 643 521 308 945 491 910 446 435 213 088 993 914 : 2 = 2 328 306 459 821 760 654 472 745 955 223 217 606 544 496 957 + 0;
  • 2 328 306 459 821 760 654 472 745 955 223 217 606 544 496 957 : 2 = 1 164 153 229 910 880 327 236 372 977 611 608 803 272 248 478 + 1;
  • 1 164 153 229 910 880 327 236 372 977 611 608 803 272 248 478 : 2 = 582 076 614 955 440 163 618 186 488 805 804 401 636 124 239 + 0;
  • 582 076 614 955 440 163 618 186 488 805 804 401 636 124 239 : 2 = 291 038 307 477 720 081 809 093 244 402 902 200 818 062 119 + 1;
  • 291 038 307 477 720 081 809 093 244 402 902 200 818 062 119 : 2 = 145 519 153 738 860 040 904 546 622 201 451 100 409 031 059 + 1;
  • 145 519 153 738 860 040 904 546 622 201 451 100 409 031 059 : 2 = 72 759 576 869 430 020 452 273 311 100 725 550 204 515 529 + 1;
  • 72 759 576 869 430 020 452 273 311 100 725 550 204 515 529 : 2 = 36 379 788 434 715 010 226 136 655 550 362 775 102 257 764 + 1;
  • 36 379 788 434 715 010 226 136 655 550 362 775 102 257 764 : 2 = 18 189 894 217 357 505 113 068 327 775 181 387 551 128 882 + 0;
  • 18 189 894 217 357 505 113 068 327 775 181 387 551 128 882 : 2 = 9 094 947 108 678 752 556 534 163 887 590 693 775 564 441 + 0;
  • 9 094 947 108 678 752 556 534 163 887 590 693 775 564 441 : 2 = 4 547 473 554 339 376 278 267 081 943 795 346 887 782 220 + 1;
  • 4 547 473 554 339 376 278 267 081 943 795 346 887 782 220 : 2 = 2 273 736 777 169 688 139 133 540 971 897 673 443 891 110 + 0;
  • 2 273 736 777 169 688 139 133 540 971 897 673 443 891 110 : 2 = 1 136 868 388 584 844 069 566 770 485 948 836 721 945 555 + 0;
  • 1 136 868 388 584 844 069 566 770 485 948 836 721 945 555 : 2 = 568 434 194 292 422 034 783 385 242 974 418 360 972 777 + 1;
  • 568 434 194 292 422 034 783 385 242 974 418 360 972 777 : 2 = 284 217 097 146 211 017 391 692 621 487 209 180 486 388 + 1;
  • 284 217 097 146 211 017 391 692 621 487 209 180 486 388 : 2 = 142 108 548 573 105 508 695 846 310 743 604 590 243 194 + 0;
  • 142 108 548 573 105 508 695 846 310 743 604 590 243 194 : 2 = 71 054 274 286 552 754 347 923 155 371 802 295 121 597 + 0;
  • 71 054 274 286 552 754 347 923 155 371 802 295 121 597 : 2 = 35 527 137 143 276 377 173 961 577 685 901 147 560 798 + 1;
  • 35 527 137 143 276 377 173 961 577 685 901 147 560 798 : 2 = 17 763 568 571 638 188 586 980 788 842 950 573 780 399 + 0;
  • 17 763 568 571 638 188 586 980 788 842 950 573 780 399 : 2 = 8 881 784 285 819 094 293 490 394 421 475 286 890 199 + 1;
  • 8 881 784 285 819 094 293 490 394 421 475 286 890 199 : 2 = 4 440 892 142 909 547 146 745 197 210 737 643 445 099 + 1;
  • 4 440 892 142 909 547 146 745 197 210 737 643 445 099 : 2 = 2 220 446 071 454 773 573 372 598 605 368 821 722 549 + 1;
  • 2 220 446 071 454 773 573 372 598 605 368 821 722 549 : 2 = 1 110 223 035 727 386 786 686 299 302 684 410 861 274 + 1;
  • 1 110 223 035 727 386 786 686 299 302 684 410 861 274 : 2 = 555 111 517 863 693 393 343 149 651 342 205 430 637 + 0;
  • 555 111 517 863 693 393 343 149 651 342 205 430 637 : 2 = 277 555 758 931 846 696 671 574 825 671 102 715 318 + 1;
  • 277 555 758 931 846 696 671 574 825 671 102 715 318 : 2 = 138 777 879 465 923 348 335 787 412 835 551 357 659 + 0;
  • 138 777 879 465 923 348 335 787 412 835 551 357 659 : 2 = 69 388 939 732 961 674 167 893 706 417 775 678 829 + 1;
  • 69 388 939 732 961 674 167 893 706 417 775 678 829 : 2 = 34 694 469 866 480 837 083 946 853 208 887 839 414 + 1;
  • 34 694 469 866 480 837 083 946 853 208 887 839 414 : 2 = 17 347 234 933 240 418 541 973 426 604 443 919 707 + 0;
  • 17 347 234 933 240 418 541 973 426 604 443 919 707 : 2 = 8 673 617 466 620 209 270 986 713 302 221 959 853 + 1;
  • 8 673 617 466 620 209 270 986 713 302 221 959 853 : 2 = 4 336 808 733 310 104 635 493 356 651 110 979 926 + 1;
  • 4 336 808 733 310 104 635 493 356 651 110 979 926 : 2 = 2 168 404 366 655 052 317 746 678 325 555 489 963 + 0;
  • 2 168 404 366 655 052 317 746 678 325 555 489 963 : 2 = 1 084 202 183 327 526 158 873 339 162 777 744 981 + 1;
  • 1 084 202 183 327 526 158 873 339 162 777 744 981 : 2 = 542 101 091 663 763 079 436 669 581 388 872 490 + 1;
  • 542 101 091 663 763 079 436 669 581 388 872 490 : 2 = 271 050 545 831 881 539 718 334 790 694 436 245 + 0;
  • 271 050 545 831 881 539 718 334 790 694 436 245 : 2 = 135 525 272 915 940 769 859 167 395 347 218 122 + 1;
  • 135 525 272 915 940 769 859 167 395 347 218 122 : 2 = 67 762 636 457 970 384 929 583 697 673 609 061 + 0;
  • 67 762 636 457 970 384 929 583 697 673 609 061 : 2 = 33 881 318 228 985 192 464 791 848 836 804 530 + 1;
  • 33 881 318 228 985 192 464 791 848 836 804 530 : 2 = 16 940 659 114 492 596 232 395 924 418 402 265 + 0;
  • 16 940 659 114 492 596 232 395 924 418 402 265 : 2 = 8 470 329 557 246 298 116 197 962 209 201 132 + 1;
  • 8 470 329 557 246 298 116 197 962 209 201 132 : 2 = 4 235 164 778 623 149 058 098 981 104 600 566 + 0;
  • 4 235 164 778 623 149 058 098 981 104 600 566 : 2 = 2 117 582 389 311 574 529 049 490 552 300 283 + 0;
  • 2 117 582 389 311 574 529 049 490 552 300 283 : 2 = 1 058 791 194 655 787 264 524 745 276 150 141 + 1;
  • 1 058 791 194 655 787 264 524 745 276 150 141 : 2 = 529 395 597 327 893 632 262 372 638 075 070 + 1;
  • 529 395 597 327 893 632 262 372 638 075 070 : 2 = 264 697 798 663 946 816 131 186 319 037 535 + 0;
  • 264 697 798 663 946 816 131 186 319 037 535 : 2 = 132 348 899 331 973 408 065 593 159 518 767 + 1;
  • 132 348 899 331 973 408 065 593 159 518 767 : 2 = 66 174 449 665 986 704 032 796 579 759 383 + 1;
  • 66 174 449 665 986 704 032 796 579 759 383 : 2 = 33 087 224 832 993 352 016 398 289 879 691 + 1;
  • 33 087 224 832 993 352 016 398 289 879 691 : 2 = 16 543 612 416 496 676 008 199 144 939 845 + 1;
  • 16 543 612 416 496 676 008 199 144 939 845 : 2 = 8 271 806 208 248 338 004 099 572 469 922 + 1;
  • 8 271 806 208 248 338 004 099 572 469 922 : 2 = 4 135 903 104 124 169 002 049 786 234 961 + 0;
  • 4 135 903 104 124 169 002 049 786 234 961 : 2 = 2 067 951 552 062 084 501 024 893 117 480 + 1;
  • 2 067 951 552 062 084 501 024 893 117 480 : 2 = 1 033 975 776 031 042 250 512 446 558 740 + 0;
  • 1 033 975 776 031 042 250 512 446 558 740 : 2 = 516 987 888 015 521 125 256 223 279 370 + 0;
  • 516 987 888 015 521 125 256 223 279 370 : 2 = 258 493 944 007 760 562 628 111 639 685 + 0;
  • 258 493 944 007 760 562 628 111 639 685 : 2 = 129 246 972 003 880 281 314 055 819 842 + 1;
  • 129 246 972 003 880 281 314 055 819 842 : 2 = 64 623 486 001 940 140 657 027 909 921 + 0;
  • 64 623 486 001 940 140 657 027 909 921 : 2 = 32 311 743 000 970 070 328 513 954 960 + 1;
  • 32 311 743 000 970 070 328 513 954 960 : 2 = 16 155 871 500 485 035 164 256 977 480 + 0;
  • 16 155 871 500 485 035 164 256 977 480 : 2 = 8 077 935 750 242 517 582 128 488 740 + 0;
  • 8 077 935 750 242 517 582 128 488 740 : 2 = 4 038 967 875 121 258 791 064 244 370 + 0;
  • 4 038 967 875 121 258 791 064 244 370 : 2 = 2 019 483 937 560 629 395 532 122 185 + 0;
  • 2 019 483 937 560 629 395 532 122 185 : 2 = 1 009 741 968 780 314 697 766 061 092 + 1;
  • 1 009 741 968 780 314 697 766 061 092 : 2 = 504 870 984 390 157 348 883 030 546 + 0;
  • 504 870 984 390 157 348 883 030 546 : 2 = 252 435 492 195 078 674 441 515 273 + 0;
  • 252 435 492 195 078 674 441 515 273 : 2 = 126 217 746 097 539 337 220 757 636 + 1;
  • 126 217 746 097 539 337 220 757 636 : 2 = 63 108 873 048 769 668 610 378 818 + 0;
  • 63 108 873 048 769 668 610 378 818 : 2 = 31 554 436 524 384 834 305 189 409 + 0;
  • 31 554 436 524 384 834 305 189 409 : 2 = 15 777 218 262 192 417 152 594 704 + 1;
  • 15 777 218 262 192 417 152 594 704 : 2 = 7 888 609 131 096 208 576 297 352 + 0;
  • 7 888 609 131 096 208 576 297 352 : 2 = 3 944 304 565 548 104 288 148 676 + 0;
  • 3 944 304 565 548 104 288 148 676 : 2 = 1 972 152 282 774 052 144 074 338 + 0;
  • 1 972 152 282 774 052 144 074 338 : 2 = 986 076 141 387 026 072 037 169 + 0;
  • 986 076 141 387 026 072 037 169 : 2 = 493 038 070 693 513 036 018 584 + 1;
  • 493 038 070 693 513 036 018 584 : 2 = 246 519 035 346 756 518 009 292 + 0;
  • 246 519 035 346 756 518 009 292 : 2 = 123 259 517 673 378 259 004 646 + 0;
  • 123 259 517 673 378 259 004 646 : 2 = 61 629 758 836 689 129 502 323 + 0;
  • 61 629 758 836 689 129 502 323 : 2 = 30 814 879 418 344 564 751 161 + 1;
  • 30 814 879 418 344 564 751 161 : 2 = 15 407 439 709 172 282 375 580 + 1;
  • 15 407 439 709 172 282 375 580 : 2 = 7 703 719 854 586 141 187 790 + 0;
  • 7 703 719 854 586 141 187 790 : 2 = 3 851 859 927 293 070 593 895 + 0;
  • 3 851 859 927 293 070 593 895 : 2 = 1 925 929 963 646 535 296 947 + 1;
  • 1 925 929 963 646 535 296 947 : 2 = 962 964 981 823 267 648 473 + 1;
  • 962 964 981 823 267 648 473 : 2 = 481 482 490 911 633 824 236 + 1;
  • 481 482 490 911 633 824 236 : 2 = 240 741 245 455 816 912 118 + 0;
  • 240 741 245 455 816 912 118 : 2 = 120 370 622 727 908 456 059 + 0;
  • 120 370 622 727 908 456 059 : 2 = 60 185 311 363 954 228 029 + 1;
  • 60 185 311 363 954 228 029 : 2 = 30 092 655 681 977 114 014 + 1;
  • 30 092 655 681 977 114 014 : 2 = 15 046 327 840 988 557 007 + 0;
  • 15 046 327 840 988 557 007 : 2 = 7 523 163 920 494 278 503 + 1;
  • 7 523 163 920 494 278 503 : 2 = 3 761 581 960 247 139 251 + 1;
  • 3 761 581 960 247 139 251 : 2 = 1 880 790 980 123 569 625 + 1;
  • 1 880 790 980 123 569 625 : 2 = 940 395 490 061 784 812 + 1;
  • 940 395 490 061 784 812 : 2 = 470 197 745 030 892 406 + 0;
  • 470 197 745 030 892 406 : 2 = 235 098 872 515 446 203 + 0;
  • 235 098 872 515 446 203 : 2 = 117 549 436 257 723 101 + 1;
  • 117 549 436 257 723 101 : 2 = 58 774 718 128 861 550 + 1;
  • 58 774 718 128 861 550 : 2 = 29 387 359 064 430 775 + 0;
  • 29 387 359 064 430 775 : 2 = 14 693 679 532 215 387 + 1;
  • 14 693 679 532 215 387 : 2 = 7 346 839 766 107 693 + 1;
  • 7 346 839 766 107 693 : 2 = 3 673 419 883 053 846 + 1;
  • 3 673 419 883 053 846 : 2 = 1 836 709 941 526 923 + 0;
  • 1 836 709 941 526 923 : 2 = 918 354 970 763 461 + 1;
  • 918 354 970 763 461 : 2 = 459 177 485 381 730 + 1;
  • 459 177 485 381 730 : 2 = 229 588 742 690 865 + 0;
  • 229 588 742 690 865 : 2 = 114 794 371 345 432 + 1;
  • 114 794 371 345 432 : 2 = 57 397 185 672 716 + 0;
  • 57 397 185 672 716 : 2 = 28 698 592 836 358 + 0;
  • 28 698 592 836 358 : 2 = 14 349 296 418 179 + 0;
  • 14 349 296 418 179 : 2 = 7 174 648 209 089 + 1;
  • 7 174 648 209 089 : 2 = 3 587 324 104 544 + 1;
  • 3 587 324 104 544 : 2 = 1 793 662 052 272 + 0;
  • 1 793 662 052 272 : 2 = 896 831 026 136 + 0;
  • 896 831 026 136 : 2 = 448 415 513 068 + 0;
  • 448 415 513 068 : 2 = 224 207 756 534 + 0;
  • 224 207 756 534 : 2 = 112 103 878 267 + 0;
  • 112 103 878 267 : 2 = 56 051 939 133 + 1;
  • 56 051 939 133 : 2 = 28 025 969 566 + 1;
  • 28 025 969 566 : 2 = 14 012 984 783 + 0;
  • 14 012 984 783 : 2 = 7 006 492 391 + 1;
  • 7 006 492 391 : 2 = 3 503 246 195 + 1;
  • 3 503 246 195 : 2 = 1 751 623 097 + 1;
  • 1 751 623 097 : 2 = 875 811 548 + 1;
  • 875 811 548 : 2 = 437 905 774 + 0;
  • 437 905 774 : 2 = 218 952 887 + 0;
  • 218 952 887 : 2 = 109 476 443 + 1;
  • 109 476 443 : 2 = 54 738 221 + 1;
  • 54 738 221 : 2 = 27 369 110 + 1;
  • 27 369 110 : 2 = 13 684 555 + 0;
  • 13 684 555 : 2 = 6 842 277 + 1;
  • 6 842 277 : 2 = 3 421 138 + 1;
  • 3 421 138 : 2 = 1 710 569 + 0;
  • 1 710 569 : 2 = 855 284 + 1;
  • 855 284 : 2 = 427 642 + 0;
  • 427 642 : 2 = 213 821 + 0;
  • 213 821 : 2 = 106 910 + 1;
  • 106 910 : 2 = 53 455 + 0;
  • 53 455 : 2 = 26 727 + 1;
  • 26 727 : 2 = 13 363 + 1;
  • 13 363 : 2 = 6 681 + 1;
  • 6 681 : 2 = 3 340 + 1;
  • 3 340 : 2 = 1 670 + 0;
  • 1 670 : 2 = 835 + 0;
  • 835 : 2 = 417 + 1;
  • 417 : 2 = 208 + 1;
  • 208 : 2 = 104 + 0;
  • 104 : 2 = 52 + 0;
  • 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. 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.

10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579(10) =


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


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

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


10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579(10) =


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


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


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


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


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


5. Ajustează exponentul.

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


Exponent (ajustat) =


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


182 + 2(11-1) - 1 =


(182 + 1 023)(10) =


1 205(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 205 : 2 = 602 + 1;
  • 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;

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) =


1205(10) =


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


1010 0001 1001 1110 1001 0110 1110 0111 1011 0000 0110 0010 1101


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 0101


Mantisă (52 biți) =
1010 0001 1001 1110 1001 0110 1110 0111 1011 0000 0110 0010 1101


Numărul zecimal 10 000 000 100 000 000 000 100 000 001 000 000 000 000 010 000 000 099 579 scris în binar în representarea pe 64 biți, precizie dublă, în virgulă mobilă în standard IEEE 754:

0 - 100 1011 0101 - 1010 0001 1001 1110 1001 0110 1110 0111 1011 0000 0110 0010 1101


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