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

Scriere 100 000 111 101 001 000 110 000 001 100 010 011 100 000 000 000 000 000 282(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 111 101 001 000 110 000 001 100 010 011 100 000 000 000 000 000 282(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 111 101 001 000 110 000 001 100 010 011 100 000 000 000 000 000 282 : 2 = 50 000 055 550 500 500 055 000 000 550 005 005 550 000 000 000 000 000 141 + 0;
  • 50 000 055 550 500 500 055 000 000 550 005 005 550 000 000 000 000 000 141 : 2 = 25 000 027 775 250 250 027 500 000 275 002 502 775 000 000 000 000 000 070 + 1;
  • 25 000 027 775 250 250 027 500 000 275 002 502 775 000 000 000 000 000 070 : 2 = 12 500 013 887 625 125 013 750 000 137 501 251 387 500 000 000 000 000 035 + 0;
  • 12 500 013 887 625 125 013 750 000 137 501 251 387 500 000 000 000 000 035 : 2 = 6 250 006 943 812 562 506 875 000 068 750 625 693 750 000 000 000 000 017 + 1;
  • 6 250 006 943 812 562 506 875 000 068 750 625 693 750 000 000 000 000 017 : 2 = 3 125 003 471 906 281 253 437 500 034 375 312 846 875 000 000 000 000 008 + 1;
  • 3 125 003 471 906 281 253 437 500 034 375 312 846 875 000 000 000 000 008 : 2 = 1 562 501 735 953 140 626 718 750 017 187 656 423 437 500 000 000 000 004 + 0;
  • 1 562 501 735 953 140 626 718 750 017 187 656 423 437 500 000 000 000 004 : 2 = 781 250 867 976 570 313 359 375 008 593 828 211 718 750 000 000 000 002 + 0;
  • 781 250 867 976 570 313 359 375 008 593 828 211 718 750 000 000 000 002 : 2 = 390 625 433 988 285 156 679 687 504 296 914 105 859 375 000 000 000 001 + 0;
  • 390 625 433 988 285 156 679 687 504 296 914 105 859 375 000 000 000 001 : 2 = 195 312 716 994 142 578 339 843 752 148 457 052 929 687 500 000 000 000 + 1;
  • 195 312 716 994 142 578 339 843 752 148 457 052 929 687 500 000 000 000 : 2 = 97 656 358 497 071 289 169 921 876 074 228 526 464 843 750 000 000 000 + 0;
  • 97 656 358 497 071 289 169 921 876 074 228 526 464 843 750 000 000 000 : 2 = 48 828 179 248 535 644 584 960 938 037 114 263 232 421 875 000 000 000 + 0;
  • 48 828 179 248 535 644 584 960 938 037 114 263 232 421 875 000 000 000 : 2 = 24 414 089 624 267 822 292 480 469 018 557 131 616 210 937 500 000 000 + 0;
  • 24 414 089 624 267 822 292 480 469 018 557 131 616 210 937 500 000 000 : 2 = 12 207 044 812 133 911 146 240 234 509 278 565 808 105 468 750 000 000 + 0;
  • 12 207 044 812 133 911 146 240 234 509 278 565 808 105 468 750 000 000 : 2 = 6 103 522 406 066 955 573 120 117 254 639 282 904 052 734 375 000 000 + 0;
  • 6 103 522 406 066 955 573 120 117 254 639 282 904 052 734 375 000 000 : 2 = 3 051 761 203 033 477 786 560 058 627 319 641 452 026 367 187 500 000 + 0;
  • 3 051 761 203 033 477 786 560 058 627 319 641 452 026 367 187 500 000 : 2 = 1 525 880 601 516 738 893 280 029 313 659 820 726 013 183 593 750 000 + 0;
  • 1 525 880 601 516 738 893 280 029 313 659 820 726 013 183 593 750 000 : 2 = 762 940 300 758 369 446 640 014 656 829 910 363 006 591 796 875 000 + 0;
  • 762 940 300 758 369 446 640 014 656 829 910 363 006 591 796 875 000 : 2 = 381 470 150 379 184 723 320 007 328 414 955 181 503 295 898 437 500 + 0;
  • 381 470 150 379 184 723 320 007 328 414 955 181 503 295 898 437 500 : 2 = 190 735 075 189 592 361 660 003 664 207 477 590 751 647 949 218 750 + 0;
  • 190 735 075 189 592 361 660 003 664 207 477 590 751 647 949 218 750 : 2 = 95 367 537 594 796 180 830 001 832 103 738 795 375 823 974 609 375 + 0;
  • 95 367 537 594 796 180 830 001 832 103 738 795 375 823 974 609 375 : 2 = 47 683 768 797 398 090 415 000 916 051 869 397 687 911 987 304 687 + 1;
  • 47 683 768 797 398 090 415 000 916 051 869 397 687 911 987 304 687 : 2 = 23 841 884 398 699 045 207 500 458 025 934 698 843 955 993 652 343 + 1;
  • 23 841 884 398 699 045 207 500 458 025 934 698 843 955 993 652 343 : 2 = 11 920 942 199 349 522 603 750 229 012 967 349 421 977 996 826 171 + 1;
  • 11 920 942 199 349 522 603 750 229 012 967 349 421 977 996 826 171 : 2 = 5 960 471 099 674 761 301 875 114 506 483 674 710 988 998 413 085 + 1;
  • 5 960 471 099 674 761 301 875 114 506 483 674 710 988 998 413 085 : 2 = 2 980 235 549 837 380 650 937 557 253 241 837 355 494 499 206 542 + 1;
  • 2 980 235 549 837 380 650 937 557 253 241 837 355 494 499 206 542 : 2 = 1 490 117 774 918 690 325 468 778 626 620 918 677 747 249 603 271 + 0;
  • 1 490 117 774 918 690 325 468 778 626 620 918 677 747 249 603 271 : 2 = 745 058 887 459 345 162 734 389 313 310 459 338 873 624 801 635 + 1;
  • 745 058 887 459 345 162 734 389 313 310 459 338 873 624 801 635 : 2 = 372 529 443 729 672 581 367 194 656 655 229 669 436 812 400 817 + 1;
  • 372 529 443 729 672 581 367 194 656 655 229 669 436 812 400 817 : 2 = 186 264 721 864 836 290 683 597 328 327 614 834 718 406 200 408 + 1;
  • 186 264 721 864 836 290 683 597 328 327 614 834 718 406 200 408 : 2 = 93 132 360 932 418 145 341 798 664 163 807 417 359 203 100 204 + 0;
  • 93 132 360 932 418 145 341 798 664 163 807 417 359 203 100 204 : 2 = 46 566 180 466 209 072 670 899 332 081 903 708 679 601 550 102 + 0;
  • 46 566 180 466 209 072 670 899 332 081 903 708 679 601 550 102 : 2 = 23 283 090 233 104 536 335 449 666 040 951 854 339 800 775 051 + 0;
  • 23 283 090 233 104 536 335 449 666 040 951 854 339 800 775 051 : 2 = 11 641 545 116 552 268 167 724 833 020 475 927 169 900 387 525 + 1;
  • 11 641 545 116 552 268 167 724 833 020 475 927 169 900 387 525 : 2 = 5 820 772 558 276 134 083 862 416 510 237 963 584 950 193 762 + 1;
  • 5 820 772 558 276 134 083 862 416 510 237 963 584 950 193 762 : 2 = 2 910 386 279 138 067 041 931 208 255 118 981 792 475 096 881 + 0;
  • 2 910 386 279 138 067 041 931 208 255 118 981 792 475 096 881 : 2 = 1 455 193 139 569 033 520 965 604 127 559 490 896 237 548 440 + 1;
  • 1 455 193 139 569 033 520 965 604 127 559 490 896 237 548 440 : 2 = 727 596 569 784 516 760 482 802 063 779 745 448 118 774 220 + 0;
  • 727 596 569 784 516 760 482 802 063 779 745 448 118 774 220 : 2 = 363 798 284 892 258 380 241 401 031 889 872 724 059 387 110 + 0;
  • 363 798 284 892 258 380 241 401 031 889 872 724 059 387 110 : 2 = 181 899 142 446 129 190 120 700 515 944 936 362 029 693 555 + 0;
  • 181 899 142 446 129 190 120 700 515 944 936 362 029 693 555 : 2 = 90 949 571 223 064 595 060 350 257 972 468 181 014 846 777 + 1;
  • 90 949 571 223 064 595 060 350 257 972 468 181 014 846 777 : 2 = 45 474 785 611 532 297 530 175 128 986 234 090 507 423 388 + 1;
  • 45 474 785 611 532 297 530 175 128 986 234 090 507 423 388 : 2 = 22 737 392 805 766 148 765 087 564 493 117 045 253 711 694 + 0;
  • 22 737 392 805 766 148 765 087 564 493 117 045 253 711 694 : 2 = 11 368 696 402 883 074 382 543 782 246 558 522 626 855 847 + 0;
  • 11 368 696 402 883 074 382 543 782 246 558 522 626 855 847 : 2 = 5 684 348 201 441 537 191 271 891 123 279 261 313 427 923 + 1;
  • 5 684 348 201 441 537 191 271 891 123 279 261 313 427 923 : 2 = 2 842 174 100 720 768 595 635 945 561 639 630 656 713 961 + 1;
  • 2 842 174 100 720 768 595 635 945 561 639 630 656 713 961 : 2 = 1 421 087 050 360 384 297 817 972 780 819 815 328 356 980 + 1;
  • 1 421 087 050 360 384 297 817 972 780 819 815 328 356 980 : 2 = 710 543 525 180 192 148 908 986 390 409 907 664 178 490 + 0;
  • 710 543 525 180 192 148 908 986 390 409 907 664 178 490 : 2 = 355 271 762 590 096 074 454 493 195 204 953 832 089 245 + 0;
  • 355 271 762 590 096 074 454 493 195 204 953 832 089 245 : 2 = 177 635 881 295 048 037 227 246 597 602 476 916 044 622 + 1;
  • 177 635 881 295 048 037 227 246 597 602 476 916 044 622 : 2 = 88 817 940 647 524 018 613 623 298 801 238 458 022 311 + 0;
  • 88 817 940 647 524 018 613 623 298 801 238 458 022 311 : 2 = 44 408 970 323 762 009 306 811 649 400 619 229 011 155 + 1;
  • 44 408 970 323 762 009 306 811 649 400 619 229 011 155 : 2 = 22 204 485 161 881 004 653 405 824 700 309 614 505 577 + 1;
  • 22 204 485 161 881 004 653 405 824 700 309 614 505 577 : 2 = 11 102 242 580 940 502 326 702 912 350 154 807 252 788 + 1;
  • 11 102 242 580 940 502 326 702 912 350 154 807 252 788 : 2 = 5 551 121 290 470 251 163 351 456 175 077 403 626 394 + 0;
  • 5 551 121 290 470 251 163 351 456 175 077 403 626 394 : 2 = 2 775 560 645 235 125 581 675 728 087 538 701 813 197 + 0;
  • 2 775 560 645 235 125 581 675 728 087 538 701 813 197 : 2 = 1 387 780 322 617 562 790 837 864 043 769 350 906 598 + 1;
  • 1 387 780 322 617 562 790 837 864 043 769 350 906 598 : 2 = 693 890 161 308 781 395 418 932 021 884 675 453 299 + 0;
  • 693 890 161 308 781 395 418 932 021 884 675 453 299 : 2 = 346 945 080 654 390 697 709 466 010 942 337 726 649 + 1;
  • 346 945 080 654 390 697 709 466 010 942 337 726 649 : 2 = 173 472 540 327 195 348 854 733 005 471 168 863 324 + 1;
  • 173 472 540 327 195 348 854 733 005 471 168 863 324 : 2 = 86 736 270 163 597 674 427 366 502 735 584 431 662 + 0;
  • 86 736 270 163 597 674 427 366 502 735 584 431 662 : 2 = 43 368 135 081 798 837 213 683 251 367 792 215 831 + 0;
  • 43 368 135 081 798 837 213 683 251 367 792 215 831 : 2 = 21 684 067 540 899 418 606 841 625 683 896 107 915 + 1;
  • 21 684 067 540 899 418 606 841 625 683 896 107 915 : 2 = 10 842 033 770 449 709 303 420 812 841 948 053 957 + 1;
  • 10 842 033 770 449 709 303 420 812 841 948 053 957 : 2 = 5 421 016 885 224 854 651 710 406 420 974 026 978 + 1;
  • 5 421 016 885 224 854 651 710 406 420 974 026 978 : 2 = 2 710 508 442 612 427 325 855 203 210 487 013 489 + 0;
  • 2 710 508 442 612 427 325 855 203 210 487 013 489 : 2 = 1 355 254 221 306 213 662 927 601 605 243 506 744 + 1;
  • 1 355 254 221 306 213 662 927 601 605 243 506 744 : 2 = 677 627 110 653 106 831 463 800 802 621 753 372 + 0;
  • 677 627 110 653 106 831 463 800 802 621 753 372 : 2 = 338 813 555 326 553 415 731 900 401 310 876 686 + 0;
  • 338 813 555 326 553 415 731 900 401 310 876 686 : 2 = 169 406 777 663 276 707 865 950 200 655 438 343 + 0;
  • 169 406 777 663 276 707 865 950 200 655 438 343 : 2 = 84 703 388 831 638 353 932 975 100 327 719 171 + 1;
  • 84 703 388 831 638 353 932 975 100 327 719 171 : 2 = 42 351 694 415 819 176 966 487 550 163 859 585 + 1;
  • 42 351 694 415 819 176 966 487 550 163 859 585 : 2 = 21 175 847 207 909 588 483 243 775 081 929 792 + 1;
  • 21 175 847 207 909 588 483 243 775 081 929 792 : 2 = 10 587 923 603 954 794 241 621 887 540 964 896 + 0;
  • 10 587 923 603 954 794 241 621 887 540 964 896 : 2 = 5 293 961 801 977 397 120 810 943 770 482 448 + 0;
  • 5 293 961 801 977 397 120 810 943 770 482 448 : 2 = 2 646 980 900 988 698 560 405 471 885 241 224 + 0;
  • 2 646 980 900 988 698 560 405 471 885 241 224 : 2 = 1 323 490 450 494 349 280 202 735 942 620 612 + 0;
  • 1 323 490 450 494 349 280 202 735 942 620 612 : 2 = 661 745 225 247 174 640 101 367 971 310 306 + 0;
  • 661 745 225 247 174 640 101 367 971 310 306 : 2 = 330 872 612 623 587 320 050 683 985 655 153 + 0;
  • 330 872 612 623 587 320 050 683 985 655 153 : 2 = 165 436 306 311 793 660 025 341 992 827 576 + 1;
  • 165 436 306 311 793 660 025 341 992 827 576 : 2 = 82 718 153 155 896 830 012 670 996 413 788 + 0;
  • 82 718 153 155 896 830 012 670 996 413 788 : 2 = 41 359 076 577 948 415 006 335 498 206 894 + 0;
  • 41 359 076 577 948 415 006 335 498 206 894 : 2 = 20 679 538 288 974 207 503 167 749 103 447 + 0;
  • 20 679 538 288 974 207 503 167 749 103 447 : 2 = 10 339 769 144 487 103 751 583 874 551 723 + 1;
  • 10 339 769 144 487 103 751 583 874 551 723 : 2 = 5 169 884 572 243 551 875 791 937 275 861 + 1;
  • 5 169 884 572 243 551 875 791 937 275 861 : 2 = 2 584 942 286 121 775 937 895 968 637 930 + 1;
  • 2 584 942 286 121 775 937 895 968 637 930 : 2 = 1 292 471 143 060 887 968 947 984 318 965 + 0;
  • 1 292 471 143 060 887 968 947 984 318 965 : 2 = 646 235 571 530 443 984 473 992 159 482 + 1;
  • 646 235 571 530 443 984 473 992 159 482 : 2 = 323 117 785 765 221 992 236 996 079 741 + 0;
  • 323 117 785 765 221 992 236 996 079 741 : 2 = 161 558 892 882 610 996 118 498 039 870 + 1;
  • 161 558 892 882 610 996 118 498 039 870 : 2 = 80 779 446 441 305 498 059 249 019 935 + 0;
  • 80 779 446 441 305 498 059 249 019 935 : 2 = 40 389 723 220 652 749 029 624 509 967 + 1;
  • 40 389 723 220 652 749 029 624 509 967 : 2 = 20 194 861 610 326 374 514 812 254 983 + 1;
  • 20 194 861 610 326 374 514 812 254 983 : 2 = 10 097 430 805 163 187 257 406 127 491 + 1;
  • 10 097 430 805 163 187 257 406 127 491 : 2 = 5 048 715 402 581 593 628 703 063 745 + 1;
  • 5 048 715 402 581 593 628 703 063 745 : 2 = 2 524 357 701 290 796 814 351 531 872 + 1;
  • 2 524 357 701 290 796 814 351 531 872 : 2 = 1 262 178 850 645 398 407 175 765 936 + 0;
  • 1 262 178 850 645 398 407 175 765 936 : 2 = 631 089 425 322 699 203 587 882 968 + 0;
  • 631 089 425 322 699 203 587 882 968 : 2 = 315 544 712 661 349 601 793 941 484 + 0;
  • 315 544 712 661 349 601 793 941 484 : 2 = 157 772 356 330 674 800 896 970 742 + 0;
  • 157 772 356 330 674 800 896 970 742 : 2 = 78 886 178 165 337 400 448 485 371 + 0;
  • 78 886 178 165 337 400 448 485 371 : 2 = 39 443 089 082 668 700 224 242 685 + 1;
  • 39 443 089 082 668 700 224 242 685 : 2 = 19 721 544 541 334 350 112 121 342 + 1;
  • 19 721 544 541 334 350 112 121 342 : 2 = 9 860 772 270 667 175 056 060 671 + 0;
  • 9 860 772 270 667 175 056 060 671 : 2 = 4 930 386 135 333 587 528 030 335 + 1;
  • 4 930 386 135 333 587 528 030 335 : 2 = 2 465 193 067 666 793 764 015 167 + 1;
  • 2 465 193 067 666 793 764 015 167 : 2 = 1 232 596 533 833 396 882 007 583 + 1;
  • 1 232 596 533 833 396 882 007 583 : 2 = 616 298 266 916 698 441 003 791 + 1;
  • 616 298 266 916 698 441 003 791 : 2 = 308 149 133 458 349 220 501 895 + 1;
  • 308 149 133 458 349 220 501 895 : 2 = 154 074 566 729 174 610 250 947 + 1;
  • 154 074 566 729 174 610 250 947 : 2 = 77 037 283 364 587 305 125 473 + 1;
  • 77 037 283 364 587 305 125 473 : 2 = 38 518 641 682 293 652 562 736 + 1;
  • 38 518 641 682 293 652 562 736 : 2 = 19 259 320 841 146 826 281 368 + 0;
  • 19 259 320 841 146 826 281 368 : 2 = 9 629 660 420 573 413 140 684 + 0;
  • 9 629 660 420 573 413 140 684 : 2 = 4 814 830 210 286 706 570 342 + 0;
  • 4 814 830 210 286 706 570 342 : 2 = 2 407 415 105 143 353 285 171 + 0;
  • 2 407 415 105 143 353 285 171 : 2 = 1 203 707 552 571 676 642 585 + 1;
  • 1 203 707 552 571 676 642 585 : 2 = 601 853 776 285 838 321 292 + 1;
  • 601 853 776 285 838 321 292 : 2 = 300 926 888 142 919 160 646 + 0;
  • 300 926 888 142 919 160 646 : 2 = 150 463 444 071 459 580 323 + 0;
  • 150 463 444 071 459 580 323 : 2 = 75 231 722 035 729 790 161 + 1;
  • 75 231 722 035 729 790 161 : 2 = 37 615 861 017 864 895 080 + 1;
  • 37 615 861 017 864 895 080 : 2 = 18 807 930 508 932 447 540 + 0;
  • 18 807 930 508 932 447 540 : 2 = 9 403 965 254 466 223 770 + 0;
  • 9 403 965 254 466 223 770 : 2 = 4 701 982 627 233 111 885 + 0;
  • 4 701 982 627 233 111 885 : 2 = 2 350 991 313 616 555 942 + 1;
  • 2 350 991 313 616 555 942 : 2 = 1 175 495 656 808 277 971 + 0;
  • 1 175 495 656 808 277 971 : 2 = 587 747 828 404 138 985 + 1;
  • 587 747 828 404 138 985 : 2 = 293 873 914 202 069 492 + 1;
  • 293 873 914 202 069 492 : 2 = 146 936 957 101 034 746 + 0;
  • 146 936 957 101 034 746 : 2 = 73 468 478 550 517 373 + 0;
  • 73 468 478 550 517 373 : 2 = 36 734 239 275 258 686 + 1;
  • 36 734 239 275 258 686 : 2 = 18 367 119 637 629 343 + 0;
  • 18 367 119 637 629 343 : 2 = 9 183 559 818 814 671 + 1;
  • 9 183 559 818 814 671 : 2 = 4 591 779 909 407 335 + 1;
  • 4 591 779 909 407 335 : 2 = 2 295 889 954 703 667 + 1;
  • 2 295 889 954 703 667 : 2 = 1 147 944 977 351 833 + 1;
  • 1 147 944 977 351 833 : 2 = 573 972 488 675 916 + 1;
  • 573 972 488 675 916 : 2 = 286 986 244 337 958 + 0;
  • 286 986 244 337 958 : 2 = 143 493 122 168 979 + 0;
  • 143 493 122 168 979 : 2 = 71 746 561 084 489 + 1;
  • 71 746 561 084 489 : 2 = 35 873 280 542 244 + 1;
  • 35 873 280 542 244 : 2 = 17 936 640 271 122 + 0;
  • 17 936 640 271 122 : 2 = 8 968 320 135 561 + 0;
  • 8 968 320 135 561 : 2 = 4 484 160 067 780 + 1;
  • 4 484 160 067 780 : 2 = 2 242 080 033 890 + 0;
  • 2 242 080 033 890 : 2 = 1 121 040 016 945 + 0;
  • 1 121 040 016 945 : 2 = 560 520 008 472 + 1;
  • 560 520 008 472 : 2 = 280 260 004 236 + 0;
  • 280 260 004 236 : 2 = 140 130 002 118 + 0;
  • 140 130 002 118 : 2 = 70 065 001 059 + 0;
  • 70 065 001 059 : 2 = 35 032 500 529 + 1;
  • 35 032 500 529 : 2 = 17 516 250 264 + 1;
  • 17 516 250 264 : 2 = 8 758 125 132 + 0;
  • 8 758 125 132 : 2 = 4 379 062 566 + 0;
  • 4 379 062 566 : 2 = 2 189 531 283 + 0;
  • 2 189 531 283 : 2 = 1 094 765 641 + 1;
  • 1 094 765 641 : 2 = 547 382 820 + 1;
  • 547 382 820 : 2 = 273 691 410 + 0;
  • 273 691 410 : 2 = 136 845 705 + 0;
  • 136 845 705 : 2 = 68 422 852 + 1;
  • 68 422 852 : 2 = 34 211 426 + 0;
  • 34 211 426 : 2 = 17 105 713 + 0;
  • 17 105 713 : 2 = 8 552 856 + 1;
  • 8 552 856 : 2 = 4 276 428 + 0;
  • 4 276 428 : 2 = 2 138 214 + 0;
  • 2 138 214 : 2 = 1 069 107 + 0;
  • 1 069 107 : 2 = 534 553 + 1;
  • 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 111 101 001 000 110 000 001 100 010 011 100 000 000 000 000 000 282(10) =


100 0001 0100 0000 1100 1100 0100 1001 1000 1100 0100 1001 1001 1111 0100 1101 0001 1001 1000 0111 1111 1011 0000 0111 1101 0101 1100 0100 0000 1110 0010 1110 0110 1001 1101 0011 1001 1000 1011 0001 1101 1111 0000 0000 0001 0001 1010(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 111 101 001 000 110 000 001 100 010 011 100 000 000 000 000 000 282(10) =


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


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


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


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


0000 0101 0000 0011 0011 0001 0010 0110 0011 0001 0010 0110 0111


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 0011 0001 0010 0110 0011 0001 0010 0110 0111


Numărul zecimal 100 000 111 101 001 000 110 000 001 100 010 011 100 000 000 000 000 000 282 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 0011 0001 0010 0110 0011 0001 0010 0110 0111


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