1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358 scris ca binar pe 64 biți, precizie dublă, virgulă mobilă în standard IEEE 754

Scriere 1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358(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
1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358(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;
  • 1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358 : 2 = 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 179 + 0;
  • 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 179 : 2 = 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 089 + 1;
  • 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 089 : 2 = 125 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 044 + 1;
  • 125 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 044 : 2 = 62 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 022 + 0;
  • 62 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 022 : 2 = 31 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 011 + 0;
  • 31 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 011 : 2 = 15 625 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 005 + 1;
  • 15 625 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 005 : 2 = 7 812 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 002 + 1;
  • 7 812 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 002 : 2 = 3 906 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 001 + 0;
  • 3 906 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 001 : 2 = 1 953 125 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 1;
  • 1 953 125 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 976 562 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 976 562 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 488 281 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 488 281 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 244 140 625 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 244 140 625 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 122 070 312 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 122 070 312 500 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 61 035 156 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 61 035 156 250 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 30 517 578 125 000 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 30 517 578 125 000 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 15 258 789 062 500 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 15 258 789 062 500 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 7 629 394 531 250 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 7 629 394 531 250 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 3 814 697 265 625 000 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 3 814 697 265 625 000 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 1 907 348 632 812 500 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 1 907 348 632 812 500 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 953 674 316 406 250 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 953 674 316 406 250 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 476 837 158 203 125 000 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 476 837 158 203 125 000 000 000 000 000 000 000 000 000 000 000 000 : 2 = 238 418 579 101 562 500 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 238 418 579 101 562 500 000 000 000 000 000 000 000 000 000 000 000 : 2 = 119 209 289 550 781 250 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 119 209 289 550 781 250 000 000 000 000 000 000 000 000 000 000 000 : 2 = 59 604 644 775 390 625 000 000 000 000 000 000 000 000 000 000 000 + 0;
  • 59 604 644 775 390 625 000 000 000 000 000 000 000 000 000 000 000 : 2 = 29 802 322 387 695 312 500 000 000 000 000 000 000 000 000 000 000 + 0;
  • 29 802 322 387 695 312 500 000 000 000 000 000 000 000 000 000 000 : 2 = 14 901 161 193 847 656 250 000 000 000 000 000 000 000 000 000 000 + 0;
  • 14 901 161 193 847 656 250 000 000 000 000 000 000 000 000 000 000 : 2 = 7 450 580 596 923 828 125 000 000 000 000 000 000 000 000 000 000 + 0;
  • 7 450 580 596 923 828 125 000 000 000 000 000 000 000 000 000 000 : 2 = 3 725 290 298 461 914 062 500 000 000 000 000 000 000 000 000 000 + 0;
  • 3 725 290 298 461 914 062 500 000 000 000 000 000 000 000 000 000 : 2 = 1 862 645 149 230 957 031 250 000 000 000 000 000 000 000 000 000 + 0;
  • 1 862 645 149 230 957 031 250 000 000 000 000 000 000 000 000 000 : 2 = 931 322 574 615 478 515 625 000 000 000 000 000 000 000 000 000 + 0;
  • 931 322 574 615 478 515 625 000 000 000 000 000 000 000 000 000 : 2 = 465 661 287 307 739 257 812 500 000 000 000 000 000 000 000 000 + 0;
  • 465 661 287 307 739 257 812 500 000 000 000 000 000 000 000 000 : 2 = 232 830 643 653 869 628 906 250 000 000 000 000 000 000 000 000 + 0;
  • 232 830 643 653 869 628 906 250 000 000 000 000 000 000 000 000 : 2 = 116 415 321 826 934 814 453 125 000 000 000 000 000 000 000 000 + 0;
  • 116 415 321 826 934 814 453 125 000 000 000 000 000 000 000 000 : 2 = 58 207 660 913 467 407 226 562 500 000 000 000 000 000 000 000 + 0;
  • 58 207 660 913 467 407 226 562 500 000 000 000 000 000 000 000 : 2 = 29 103 830 456 733 703 613 281 250 000 000 000 000 000 000 000 + 0;
  • 29 103 830 456 733 703 613 281 250 000 000 000 000 000 000 000 : 2 = 14 551 915 228 366 851 806 640 625 000 000 000 000 000 000 000 + 0;
  • 14 551 915 228 366 851 806 640 625 000 000 000 000 000 000 000 : 2 = 7 275 957 614 183 425 903 320 312 500 000 000 000 000 000 000 + 0;
  • 7 275 957 614 183 425 903 320 312 500 000 000 000 000 000 000 : 2 = 3 637 978 807 091 712 951 660 156 250 000 000 000 000 000 000 + 0;
  • 3 637 978 807 091 712 951 660 156 250 000 000 000 000 000 000 : 2 = 1 818 989 403 545 856 475 830 078 125 000 000 000 000 000 000 + 0;
  • 1 818 989 403 545 856 475 830 078 125 000 000 000 000 000 000 : 2 = 909 494 701 772 928 237 915 039 062 500 000 000 000 000 000 + 0;
  • 909 494 701 772 928 237 915 039 062 500 000 000 000 000 000 : 2 = 454 747 350 886 464 118 957 519 531 250 000 000 000 000 000 + 0;
  • 454 747 350 886 464 118 957 519 531 250 000 000 000 000 000 : 2 = 227 373 675 443 232 059 478 759 765 625 000 000 000 000 000 + 0;
  • 227 373 675 443 232 059 478 759 765 625 000 000 000 000 000 : 2 = 113 686 837 721 616 029 739 379 882 812 500 000 000 000 000 + 0;
  • 113 686 837 721 616 029 739 379 882 812 500 000 000 000 000 : 2 = 56 843 418 860 808 014 869 689 941 406 250 000 000 000 000 + 0;
  • 56 843 418 860 808 014 869 689 941 406 250 000 000 000 000 : 2 = 28 421 709 430 404 007 434 844 970 703 125 000 000 000 000 + 0;
  • 28 421 709 430 404 007 434 844 970 703 125 000 000 000 000 : 2 = 14 210 854 715 202 003 717 422 485 351 562 500 000 000 000 + 0;
  • 14 210 854 715 202 003 717 422 485 351 562 500 000 000 000 : 2 = 7 105 427 357 601 001 858 711 242 675 781 250 000 000 000 + 0;
  • 7 105 427 357 601 001 858 711 242 675 781 250 000 000 000 : 2 = 3 552 713 678 800 500 929 355 621 337 890 625 000 000 000 + 0;
  • 3 552 713 678 800 500 929 355 621 337 890 625 000 000 000 : 2 = 1 776 356 839 400 250 464 677 810 668 945 312 500 000 000 + 0;
  • 1 776 356 839 400 250 464 677 810 668 945 312 500 000 000 : 2 = 888 178 419 700 125 232 338 905 334 472 656 250 000 000 + 0;
  • 888 178 419 700 125 232 338 905 334 472 656 250 000 000 : 2 = 444 089 209 850 062 616 169 452 667 236 328 125 000 000 + 0;
  • 444 089 209 850 062 616 169 452 667 236 328 125 000 000 : 2 = 222 044 604 925 031 308 084 726 333 618 164 062 500 000 + 0;
  • 222 044 604 925 031 308 084 726 333 618 164 062 500 000 : 2 = 111 022 302 462 515 654 042 363 166 809 082 031 250 000 + 0;
  • 111 022 302 462 515 654 042 363 166 809 082 031 250 000 : 2 = 55 511 151 231 257 827 021 181 583 404 541 015 625 000 + 0;
  • 55 511 151 231 257 827 021 181 583 404 541 015 625 000 : 2 = 27 755 575 615 628 913 510 590 791 702 270 507 812 500 + 0;
  • 27 755 575 615 628 913 510 590 791 702 270 507 812 500 : 2 = 13 877 787 807 814 456 755 295 395 851 135 253 906 250 + 0;
  • 13 877 787 807 814 456 755 295 395 851 135 253 906 250 : 2 = 6 938 893 903 907 228 377 647 697 925 567 626 953 125 + 0;
  • 6 938 893 903 907 228 377 647 697 925 567 626 953 125 : 2 = 3 469 446 951 953 614 188 823 848 962 783 813 476 562 + 1;
  • 3 469 446 951 953 614 188 823 848 962 783 813 476 562 : 2 = 1 734 723 475 976 807 094 411 924 481 391 906 738 281 + 0;
  • 1 734 723 475 976 807 094 411 924 481 391 906 738 281 : 2 = 867 361 737 988 403 547 205 962 240 695 953 369 140 + 1;
  • 867 361 737 988 403 547 205 962 240 695 953 369 140 : 2 = 433 680 868 994 201 773 602 981 120 347 976 684 570 + 0;
  • 433 680 868 994 201 773 602 981 120 347 976 684 570 : 2 = 216 840 434 497 100 886 801 490 560 173 988 342 285 + 0;
  • 216 840 434 497 100 886 801 490 560 173 988 342 285 : 2 = 108 420 217 248 550 443 400 745 280 086 994 171 142 + 1;
  • 108 420 217 248 550 443 400 745 280 086 994 171 142 : 2 = 54 210 108 624 275 221 700 372 640 043 497 085 571 + 0;
  • 54 210 108 624 275 221 700 372 640 043 497 085 571 : 2 = 27 105 054 312 137 610 850 186 320 021 748 542 785 + 1;
  • 27 105 054 312 137 610 850 186 320 021 748 542 785 : 2 = 13 552 527 156 068 805 425 093 160 010 874 271 392 + 1;
  • 13 552 527 156 068 805 425 093 160 010 874 271 392 : 2 = 6 776 263 578 034 402 712 546 580 005 437 135 696 + 0;
  • 6 776 263 578 034 402 712 546 580 005 437 135 696 : 2 = 3 388 131 789 017 201 356 273 290 002 718 567 848 + 0;
  • 3 388 131 789 017 201 356 273 290 002 718 567 848 : 2 = 1 694 065 894 508 600 678 136 645 001 359 283 924 + 0;
  • 1 694 065 894 508 600 678 136 645 001 359 283 924 : 2 = 847 032 947 254 300 339 068 322 500 679 641 962 + 0;
  • 847 032 947 254 300 339 068 322 500 679 641 962 : 2 = 423 516 473 627 150 169 534 161 250 339 820 981 + 0;
  • 423 516 473 627 150 169 534 161 250 339 820 981 : 2 = 211 758 236 813 575 084 767 080 625 169 910 490 + 1;
  • 211 758 236 813 575 084 767 080 625 169 910 490 : 2 = 105 879 118 406 787 542 383 540 312 584 955 245 + 0;
  • 105 879 118 406 787 542 383 540 312 584 955 245 : 2 = 52 939 559 203 393 771 191 770 156 292 477 622 + 1;
  • 52 939 559 203 393 771 191 770 156 292 477 622 : 2 = 26 469 779 601 696 885 595 885 078 146 238 811 + 0;
  • 26 469 779 601 696 885 595 885 078 146 238 811 : 2 = 13 234 889 800 848 442 797 942 539 073 119 405 + 1;
  • 13 234 889 800 848 442 797 942 539 073 119 405 : 2 = 6 617 444 900 424 221 398 971 269 536 559 702 + 1;
  • 6 617 444 900 424 221 398 971 269 536 559 702 : 2 = 3 308 722 450 212 110 699 485 634 768 279 851 + 0;
  • 3 308 722 450 212 110 699 485 634 768 279 851 : 2 = 1 654 361 225 106 055 349 742 817 384 139 925 + 1;
  • 1 654 361 225 106 055 349 742 817 384 139 925 : 2 = 827 180 612 553 027 674 871 408 692 069 962 + 1;
  • 827 180 612 553 027 674 871 408 692 069 962 : 2 = 413 590 306 276 513 837 435 704 346 034 981 + 0;
  • 413 590 306 276 513 837 435 704 346 034 981 : 2 = 206 795 153 138 256 918 717 852 173 017 490 + 1;
  • 206 795 153 138 256 918 717 852 173 017 490 : 2 = 103 397 576 569 128 459 358 926 086 508 745 + 0;
  • 103 397 576 569 128 459 358 926 086 508 745 : 2 = 51 698 788 284 564 229 679 463 043 254 372 + 1;
  • 51 698 788 284 564 229 679 463 043 254 372 : 2 = 25 849 394 142 282 114 839 731 521 627 186 + 0;
  • 25 849 394 142 282 114 839 731 521 627 186 : 2 = 12 924 697 071 141 057 419 865 760 813 593 + 0;
  • 12 924 697 071 141 057 419 865 760 813 593 : 2 = 6 462 348 535 570 528 709 932 880 406 796 + 1;
  • 6 462 348 535 570 528 709 932 880 406 796 : 2 = 3 231 174 267 785 264 354 966 440 203 398 + 0;
  • 3 231 174 267 785 264 354 966 440 203 398 : 2 = 1 615 587 133 892 632 177 483 220 101 699 + 0;
  • 1 615 587 133 892 632 177 483 220 101 699 : 2 = 807 793 566 946 316 088 741 610 050 849 + 1;
  • 807 793 566 946 316 088 741 610 050 849 : 2 = 403 896 783 473 158 044 370 805 025 424 + 1;
  • 403 896 783 473 158 044 370 805 025 424 : 2 = 201 948 391 736 579 022 185 402 512 712 + 0;
  • 201 948 391 736 579 022 185 402 512 712 : 2 = 100 974 195 868 289 511 092 701 256 356 + 0;
  • 100 974 195 868 289 511 092 701 256 356 : 2 = 50 487 097 934 144 755 546 350 628 178 + 0;
  • 50 487 097 934 144 755 546 350 628 178 : 2 = 25 243 548 967 072 377 773 175 314 089 + 0;
  • 25 243 548 967 072 377 773 175 314 089 : 2 = 12 621 774 483 536 188 886 587 657 044 + 1;
  • 12 621 774 483 536 188 886 587 657 044 : 2 = 6 310 887 241 768 094 443 293 828 522 + 0;
  • 6 310 887 241 768 094 443 293 828 522 : 2 = 3 155 443 620 884 047 221 646 914 261 + 0;
  • 3 155 443 620 884 047 221 646 914 261 : 2 = 1 577 721 810 442 023 610 823 457 130 + 1;
  • 1 577 721 810 442 023 610 823 457 130 : 2 = 788 860 905 221 011 805 411 728 565 + 0;
  • 788 860 905 221 011 805 411 728 565 : 2 = 394 430 452 610 505 902 705 864 282 + 1;
  • 394 430 452 610 505 902 705 864 282 : 2 = 197 215 226 305 252 951 352 932 141 + 0;
  • 197 215 226 305 252 951 352 932 141 : 2 = 98 607 613 152 626 475 676 466 070 + 1;
  • 98 607 613 152 626 475 676 466 070 : 2 = 49 303 806 576 313 237 838 233 035 + 0;
  • 49 303 806 576 313 237 838 233 035 : 2 = 24 651 903 288 156 618 919 116 517 + 1;
  • 24 651 903 288 156 618 919 116 517 : 2 = 12 325 951 644 078 309 459 558 258 + 1;
  • 12 325 951 644 078 309 459 558 258 : 2 = 6 162 975 822 039 154 729 779 129 + 0;
  • 6 162 975 822 039 154 729 779 129 : 2 = 3 081 487 911 019 577 364 889 564 + 1;
  • 3 081 487 911 019 577 364 889 564 : 2 = 1 540 743 955 509 788 682 444 782 + 0;
  • 1 540 743 955 509 788 682 444 782 : 2 = 770 371 977 754 894 341 222 391 + 0;
  • 770 371 977 754 894 341 222 391 : 2 = 385 185 988 877 447 170 611 195 + 1;
  • 385 185 988 877 447 170 611 195 : 2 = 192 592 994 438 723 585 305 597 + 1;
  • 192 592 994 438 723 585 305 597 : 2 = 96 296 497 219 361 792 652 798 + 1;
  • 96 296 497 219 361 792 652 798 : 2 = 48 148 248 609 680 896 326 399 + 0;
  • 48 148 248 609 680 896 326 399 : 2 = 24 074 124 304 840 448 163 199 + 1;
  • 24 074 124 304 840 448 163 199 : 2 = 12 037 062 152 420 224 081 599 + 1;
  • 12 037 062 152 420 224 081 599 : 2 = 6 018 531 076 210 112 040 799 + 1;
  • 6 018 531 076 210 112 040 799 : 2 = 3 009 265 538 105 056 020 399 + 1;
  • 3 009 265 538 105 056 020 399 : 2 = 1 504 632 769 052 528 010 199 + 1;
  • 1 504 632 769 052 528 010 199 : 2 = 752 316 384 526 264 005 099 + 1;
  • 752 316 384 526 264 005 099 : 2 = 376 158 192 263 132 002 549 + 1;
  • 376 158 192 263 132 002 549 : 2 = 188 079 096 131 566 001 274 + 1;
  • 188 079 096 131 566 001 274 : 2 = 94 039 548 065 783 000 637 + 0;
  • 94 039 548 065 783 000 637 : 2 = 47 019 774 032 891 500 318 + 1;
  • 47 019 774 032 891 500 318 : 2 = 23 509 887 016 445 750 159 + 0;
  • 23 509 887 016 445 750 159 : 2 = 11 754 943 508 222 875 079 + 1;
  • 11 754 943 508 222 875 079 : 2 = 5 877 471 754 111 437 539 + 1;
  • 5 877 471 754 111 437 539 : 2 = 2 938 735 877 055 718 769 + 1;
  • 2 938 735 877 055 718 769 : 2 = 1 469 367 938 527 859 384 + 1;
  • 1 469 367 938 527 859 384 : 2 = 734 683 969 263 929 692 + 0;
  • 734 683 969 263 929 692 : 2 = 367 341 984 631 964 846 + 0;
  • 367 341 984 631 964 846 : 2 = 183 670 992 315 982 423 + 0;
  • 183 670 992 315 982 423 : 2 = 91 835 496 157 991 211 + 1;
  • 91 835 496 157 991 211 : 2 = 45 917 748 078 995 605 + 1;
  • 45 917 748 078 995 605 : 2 = 22 958 874 039 497 802 + 1;
  • 22 958 874 039 497 802 : 2 = 11 479 437 019 748 901 + 0;
  • 11 479 437 019 748 901 : 2 = 5 739 718 509 874 450 + 1;
  • 5 739 718 509 874 450 : 2 = 2 869 859 254 937 225 + 0;
  • 2 869 859 254 937 225 : 2 = 1 434 929 627 468 612 + 1;
  • 1 434 929 627 468 612 : 2 = 717 464 813 734 306 + 0;
  • 717 464 813 734 306 : 2 = 358 732 406 867 153 + 0;
  • 358 732 406 867 153 : 2 = 179 366 203 433 576 + 1;
  • 179 366 203 433 576 : 2 = 89 683 101 716 788 + 0;
  • 89 683 101 716 788 : 2 = 44 841 550 858 394 + 0;
  • 44 841 550 858 394 : 2 = 22 420 775 429 197 + 0;
  • 22 420 775 429 197 : 2 = 11 210 387 714 598 + 1;
  • 11 210 387 714 598 : 2 = 5 605 193 857 299 + 0;
  • 5 605 193 857 299 : 2 = 2 802 596 928 649 + 1;
  • 2 802 596 928 649 : 2 = 1 401 298 464 324 + 1;
  • 1 401 298 464 324 : 2 = 700 649 232 162 + 0;
  • 700 649 232 162 : 2 = 350 324 616 081 + 0;
  • 350 324 616 081 : 2 = 175 162 308 040 + 1;
  • 175 162 308 040 : 2 = 87 581 154 020 + 0;
  • 87 581 154 020 : 2 = 43 790 577 010 + 0;
  • 43 790 577 010 : 2 = 21 895 288 505 + 0;
  • 21 895 288 505 : 2 = 10 947 644 252 + 1;
  • 10 947 644 252 : 2 = 5 473 822 126 + 0;
  • 5 473 822 126 : 2 = 2 736 911 063 + 0;
  • 2 736 911 063 : 2 = 1 368 455 531 + 1;
  • 1 368 455 531 : 2 = 684 227 765 + 1;
  • 684 227 765 : 2 = 342 113 882 + 1;
  • 342 113 882 : 2 = 171 056 941 + 0;
  • 171 056 941 : 2 = 85 528 470 + 1;
  • 85 528 470 : 2 = 42 764 235 + 0;
  • 42 764 235 : 2 = 21 382 117 + 1;
  • 21 382 117 : 2 = 10 691 058 + 1;
  • 10 691 058 : 2 = 5 345 529 + 0;
  • 5 345 529 : 2 = 2 672 764 + 1;
  • 2 672 764 : 2 = 1 336 382 + 0;
  • 1 336 382 : 2 = 668 191 + 0;
  • 668 191 : 2 = 334 095 + 1;
  • 334 095 : 2 = 167 047 + 1;
  • 167 047 : 2 = 83 523 + 1;
  • 83 523 : 2 = 41 761 + 1;
  • 41 761 : 2 = 20 880 + 1;
  • 20 880 : 2 = 10 440 + 0;
  • 10 440 : 2 = 5 220 + 0;
  • 5 220 : 2 = 2 610 + 0;
  • 2 610 : 2 = 1 305 + 0;
  • 1 305 : 2 = 652 + 1;
  • 652 : 2 = 326 + 0;
  • 326 : 2 = 163 + 0;
  • 163 : 2 = 81 + 1;
  • 81 : 2 = 40 + 1;
  • 40 : 2 = 20 + 0;
  • 20 : 2 = 10 + 0;
  • 10 : 2 = 5 + 0;
  • 5 : 2 = 2 + 1;
  • 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.

1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358(10) =


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


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

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


1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358(10) =


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


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


1,0100 0110 0100 0011 1110 0101 1010 1110 0100 0100 1101 0001 0010 1011 1000 1111 0101 1111 1110 1110 0101 1010 1010 0100 0011 0010 0101 0110 1101 0100 0001 1010 0101 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1011 0011 0(2) × 2189


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


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


5. Ajustează exponentul.

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


Exponent (ajustat) =


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


189 + 2(11-1) - 1 =


(189 + 1 023)(10) =


1 212(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 212 : 2 = 606 + 0;
  • 606 : 2 = 303 + 0;
  • 303 : 2 = 151 + 1;
  • 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) =


1212(10) =


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


0100 0110 0100 0011 1110 0101 1010 1110 0100 0100 1101 0001 0010


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 1100


Mantisă (52 biți) =
0100 0110 0100 0011 1110 0101 1010 1110 0100 0100 1101 0001 0010


Numărul zecimal 1 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 358 scris în binar în representarea pe 64 biți, precizie dublă, în virgulă mobilă în standard IEEE 754:

0 - 100 1011 1100 - 0100 0110 0100 0011 1110 0101 1010 1110 0100 0100 1101 0001 0010


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