-0.000 000 000 000 000 000 000 000 000 000 000 000 057 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal -0.000 000 000 000 000 000 000 000 000 000 000 000 057(10) to 32 bit single precision IEEE 754 binary floating point representation standard (1 bit for sign, 8 bits for exponent, 23 bits for mantissa)

What are the steps to convert decimal number
-0.000 000 000 000 000 000 000 000 000 000 000 000 057(10) to 32 bit single precision IEEE 754 binary floating point representation (1 bit for sign, 8 bits for exponent, 23 bits for mantissa)

1. Start with the positive version of the number:

|-0.000 000 000 000 000 000 000 000 000 000 000 000 057| = 0.000 000 000 000 000 000 000 000 000 000 000 000 057


2. First, convert to binary (in base 2) the integer part: 0.
Divide the number repeatedly by 2.

Keep track of each remainder.

We stop when we get a quotient that is equal to zero.


  • division = quotient + remainder;
  • 0 ÷ 2 = 0 + 0;

3. Construct the base 2 representation of the integer part of the number.

Take all the remainders starting from the bottom of the list constructed above.

0(10) =


0(2)


4. Convert to binary (base 2) the fractional part: 0.000 000 000 000 000 000 000 000 000 000 000 000 057.

Multiply it repeatedly by 2.


Keep track of each integer part of the results.


Stop when we get a fractional part that is equal to zero.


  • #) multiplying = integer + fractional part;
  • 1) 0.000 000 000 000 000 000 000 000 000 000 000 000 057 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 000 114;
  • 2) 0.000 000 000 000 000 000 000 000 000 000 000 000 114 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 000 228;
  • 3) 0.000 000 000 000 000 000 000 000 000 000 000 000 228 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 000 456;
  • 4) 0.000 000 000 000 000 000 000 000 000 000 000 000 456 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 000 912;
  • 5) 0.000 000 000 000 000 000 000 000 000 000 000 000 912 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 001 824;
  • 6) 0.000 000 000 000 000 000 000 000 000 000 000 001 824 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 003 648;
  • 7) 0.000 000 000 000 000 000 000 000 000 000 000 003 648 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 007 296;
  • 8) 0.000 000 000 000 000 000 000 000 000 000 000 007 296 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 014 592;
  • 9) 0.000 000 000 000 000 000 000 000 000 000 000 014 592 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 029 184;
  • 10) 0.000 000 000 000 000 000 000 000 000 000 000 029 184 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 058 368;
  • 11) 0.000 000 000 000 000 000 000 000 000 000 000 058 368 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 116 736;
  • 12) 0.000 000 000 000 000 000 000 000 000 000 000 116 736 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 233 472;
  • 13) 0.000 000 000 000 000 000 000 000 000 000 000 233 472 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 466 944;
  • 14) 0.000 000 000 000 000 000 000 000 000 000 000 466 944 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 000 933 888;
  • 15) 0.000 000 000 000 000 000 000 000 000 000 000 933 888 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 001 867 776;
  • 16) 0.000 000 000 000 000 000 000 000 000 000 001 867 776 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 003 735 552;
  • 17) 0.000 000 000 000 000 000 000 000 000 000 003 735 552 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 007 471 104;
  • 18) 0.000 000 000 000 000 000 000 000 000 000 007 471 104 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 014 942 208;
  • 19) 0.000 000 000 000 000 000 000 000 000 000 014 942 208 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 029 884 416;
  • 20) 0.000 000 000 000 000 000 000 000 000 000 029 884 416 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 059 768 832;
  • 21) 0.000 000 000 000 000 000 000 000 000 000 059 768 832 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 119 537 664;
  • 22) 0.000 000 000 000 000 000 000 000 000 000 119 537 664 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 239 075 328;
  • 23) 0.000 000 000 000 000 000 000 000 000 000 239 075 328 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 478 150 656;
  • 24) 0.000 000 000 000 000 000 000 000 000 000 478 150 656 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 000 956 301 312;
  • 25) 0.000 000 000 000 000 000 000 000 000 000 956 301 312 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 001 912 602 624;
  • 26) 0.000 000 000 000 000 000 000 000 000 001 912 602 624 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 003 825 205 248;
  • 27) 0.000 000 000 000 000 000 000 000 000 003 825 205 248 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 007 650 410 496;
  • 28) 0.000 000 000 000 000 000 000 000 000 007 650 410 496 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 015 300 820 992;
  • 29) 0.000 000 000 000 000 000 000 000 000 015 300 820 992 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 030 601 641 984;
  • 30) 0.000 000 000 000 000 000 000 000 000 030 601 641 984 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 061 203 283 968;
  • 31) 0.000 000 000 000 000 000 000 000 000 061 203 283 968 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 122 406 567 936;
  • 32) 0.000 000 000 000 000 000 000 000 000 122 406 567 936 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 244 813 135 872;
  • 33) 0.000 000 000 000 000 000 000 000 000 244 813 135 872 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 489 626 271 744;
  • 34) 0.000 000 000 000 000 000 000 000 000 489 626 271 744 × 2 = 0 + 0.000 000 000 000 000 000 000 000 000 979 252 543 488;
  • 35) 0.000 000 000 000 000 000 000 000 000 979 252 543 488 × 2 = 0 + 0.000 000 000 000 000 000 000 000 001 958 505 086 976;
  • 36) 0.000 000 000 000 000 000 000 000 001 958 505 086 976 × 2 = 0 + 0.000 000 000 000 000 000 000 000 003 917 010 173 952;
  • 37) 0.000 000 000 000 000 000 000 000 003 917 010 173 952 × 2 = 0 + 0.000 000 000 000 000 000 000 000 007 834 020 347 904;
  • 38) 0.000 000 000 000 000 000 000 000 007 834 020 347 904 × 2 = 0 + 0.000 000 000 000 000 000 000 000 015 668 040 695 808;
  • 39) 0.000 000 000 000 000 000 000 000 015 668 040 695 808 × 2 = 0 + 0.000 000 000 000 000 000 000 000 031 336 081 391 616;
  • 40) 0.000 000 000 000 000 000 000 000 031 336 081 391 616 × 2 = 0 + 0.000 000 000 000 000 000 000 000 062 672 162 783 232;
  • 41) 0.000 000 000 000 000 000 000 000 062 672 162 783 232 × 2 = 0 + 0.000 000 000 000 000 000 000 000 125 344 325 566 464;
  • 42) 0.000 000 000 000 000 000 000 000 125 344 325 566 464 × 2 = 0 + 0.000 000 000 000 000 000 000 000 250 688 651 132 928;
  • 43) 0.000 000 000 000 000 000 000 000 250 688 651 132 928 × 2 = 0 + 0.000 000 000 000 000 000 000 000 501 377 302 265 856;
  • 44) 0.000 000 000 000 000 000 000 000 501 377 302 265 856 × 2 = 0 + 0.000 000 000 000 000 000 000 001 002 754 604 531 712;
  • 45) 0.000 000 000 000 000 000 000 001 002 754 604 531 712 × 2 = 0 + 0.000 000 000 000 000 000 000 002 005 509 209 063 424;
  • 46) 0.000 000 000 000 000 000 000 002 005 509 209 063 424 × 2 = 0 + 0.000 000 000 000 000 000 000 004 011 018 418 126 848;
  • 47) 0.000 000 000 000 000 000 000 004 011 018 418 126 848 × 2 = 0 + 0.000 000 000 000 000 000 000 008 022 036 836 253 696;
  • 48) 0.000 000 000 000 000 000 000 008 022 036 836 253 696 × 2 = 0 + 0.000 000 000 000 000 000 000 016 044 073 672 507 392;
  • 49) 0.000 000 000 000 000 000 000 016 044 073 672 507 392 × 2 = 0 + 0.000 000 000 000 000 000 000 032 088 147 345 014 784;
  • 50) 0.000 000 000 000 000 000 000 032 088 147 345 014 784 × 2 = 0 + 0.000 000 000 000 000 000 000 064 176 294 690 029 568;
  • 51) 0.000 000 000 000 000 000 000 064 176 294 690 029 568 × 2 = 0 + 0.000 000 000 000 000 000 000 128 352 589 380 059 136;
  • 52) 0.000 000 000 000 000 000 000 128 352 589 380 059 136 × 2 = 0 + 0.000 000 000 000 000 000 000 256 705 178 760 118 272;
  • 53) 0.000 000 000 000 000 000 000 256 705 178 760 118 272 × 2 = 0 + 0.000 000 000 000 000 000 000 513 410 357 520 236 544;
  • 54) 0.000 000 000 000 000 000 000 513 410 357 520 236 544 × 2 = 0 + 0.000 000 000 000 000 000 001 026 820 715 040 473 088;
  • 55) 0.000 000 000 000 000 000 001 026 820 715 040 473 088 × 2 = 0 + 0.000 000 000 000 000 000 002 053 641 430 080 946 176;
  • 56) 0.000 000 000 000 000 000 002 053 641 430 080 946 176 × 2 = 0 + 0.000 000 000 000 000 000 004 107 282 860 161 892 352;
  • 57) 0.000 000 000 000 000 000 004 107 282 860 161 892 352 × 2 = 0 + 0.000 000 000 000 000 000 008 214 565 720 323 784 704;
  • 58) 0.000 000 000 000 000 000 008 214 565 720 323 784 704 × 2 = 0 + 0.000 000 000 000 000 000 016 429 131 440 647 569 408;
  • 59) 0.000 000 000 000 000 000 016 429 131 440 647 569 408 × 2 = 0 + 0.000 000 000 000 000 000 032 858 262 881 295 138 816;
  • 60) 0.000 000 000 000 000 000 032 858 262 881 295 138 816 × 2 = 0 + 0.000 000 000 000 000 000 065 716 525 762 590 277 632;
  • 61) 0.000 000 000 000 000 000 065 716 525 762 590 277 632 × 2 = 0 + 0.000 000 000 000 000 000 131 433 051 525 180 555 264;
  • 62) 0.000 000 000 000 000 000 131 433 051 525 180 555 264 × 2 = 0 + 0.000 000 000 000 000 000 262 866 103 050 361 110 528;
  • 63) 0.000 000 000 000 000 000 262 866 103 050 361 110 528 × 2 = 0 + 0.000 000 000 000 000 000 525 732 206 100 722 221 056;
  • 64) 0.000 000 000 000 000 000 525 732 206 100 722 221 056 × 2 = 0 + 0.000 000 000 000 000 001 051 464 412 201 444 442 112;
  • 65) 0.000 000 000 000 000 001 051 464 412 201 444 442 112 × 2 = 0 + 0.000 000 000 000 000 002 102 928 824 402 888 884 224;
  • 66) 0.000 000 000 000 000 002 102 928 824 402 888 884 224 × 2 = 0 + 0.000 000 000 000 000 004 205 857 648 805 777 768 448;
  • 67) 0.000 000 000 000 000 004 205 857 648 805 777 768 448 × 2 = 0 + 0.000 000 000 000 000 008 411 715 297 611 555 536 896;
  • 68) 0.000 000 000 000 000 008 411 715 297 611 555 536 896 × 2 = 0 + 0.000 000 000 000 000 016 823 430 595 223 111 073 792;
  • 69) 0.000 000 000 000 000 016 823 430 595 223 111 073 792 × 2 = 0 + 0.000 000 000 000 000 033 646 861 190 446 222 147 584;
  • 70) 0.000 000 000 000 000 033 646 861 190 446 222 147 584 × 2 = 0 + 0.000 000 000 000 000 067 293 722 380 892 444 295 168;
  • 71) 0.000 000 000 000 000 067 293 722 380 892 444 295 168 × 2 = 0 + 0.000 000 000 000 000 134 587 444 761 784 888 590 336;
  • 72) 0.000 000 000 000 000 134 587 444 761 784 888 590 336 × 2 = 0 + 0.000 000 000 000 000 269 174 889 523 569 777 180 672;
  • 73) 0.000 000 000 000 000 269 174 889 523 569 777 180 672 × 2 = 0 + 0.000 000 000 000 000 538 349 779 047 139 554 361 344;
  • 74) 0.000 000 000 000 000 538 349 779 047 139 554 361 344 × 2 = 0 + 0.000 000 000 000 001 076 699 558 094 279 108 722 688;
  • 75) 0.000 000 000 000 001 076 699 558 094 279 108 722 688 × 2 = 0 + 0.000 000 000 000 002 153 399 116 188 558 217 445 376;
  • 76) 0.000 000 000 000 002 153 399 116 188 558 217 445 376 × 2 = 0 + 0.000 000 000 000 004 306 798 232 377 116 434 890 752;
  • 77) 0.000 000 000 000 004 306 798 232 377 116 434 890 752 × 2 = 0 + 0.000 000 000 000 008 613 596 464 754 232 869 781 504;
  • 78) 0.000 000 000 000 008 613 596 464 754 232 869 781 504 × 2 = 0 + 0.000 000 000 000 017 227 192 929 508 465 739 563 008;
  • 79) 0.000 000 000 000 017 227 192 929 508 465 739 563 008 × 2 = 0 + 0.000 000 000 000 034 454 385 859 016 931 479 126 016;
  • 80) 0.000 000 000 000 034 454 385 859 016 931 479 126 016 × 2 = 0 + 0.000 000 000 000 068 908 771 718 033 862 958 252 032;
  • 81) 0.000 000 000 000 068 908 771 718 033 862 958 252 032 × 2 = 0 + 0.000 000 000 000 137 817 543 436 067 725 916 504 064;
  • 82) 0.000 000 000 000 137 817 543 436 067 725 916 504 064 × 2 = 0 + 0.000 000 000 000 275 635 086 872 135 451 833 008 128;
  • 83) 0.000 000 000 000 275 635 086 872 135 451 833 008 128 × 2 = 0 + 0.000 000 000 000 551 270 173 744 270 903 666 016 256;
  • 84) 0.000 000 000 000 551 270 173 744 270 903 666 016 256 × 2 = 0 + 0.000 000 000 001 102 540 347 488 541 807 332 032 512;
  • 85) 0.000 000 000 001 102 540 347 488 541 807 332 032 512 × 2 = 0 + 0.000 000 000 002 205 080 694 977 083 614 664 065 024;
  • 86) 0.000 000 000 002 205 080 694 977 083 614 664 065 024 × 2 = 0 + 0.000 000 000 004 410 161 389 954 167 229 328 130 048;
  • 87) 0.000 000 000 004 410 161 389 954 167 229 328 130 048 × 2 = 0 + 0.000 000 000 008 820 322 779 908 334 458 656 260 096;
  • 88) 0.000 000 000 008 820 322 779 908 334 458 656 260 096 × 2 = 0 + 0.000 000 000 017 640 645 559 816 668 917 312 520 192;
  • 89) 0.000 000 000 017 640 645 559 816 668 917 312 520 192 × 2 = 0 + 0.000 000 000 035 281 291 119 633 337 834 625 040 384;
  • 90) 0.000 000 000 035 281 291 119 633 337 834 625 040 384 × 2 = 0 + 0.000 000 000 070 562 582 239 266 675 669 250 080 768;
  • 91) 0.000 000 000 070 562 582 239 266 675 669 250 080 768 × 2 = 0 + 0.000 000 000 141 125 164 478 533 351 338 500 161 536;
  • 92) 0.000 000 000 141 125 164 478 533 351 338 500 161 536 × 2 = 0 + 0.000 000 000 282 250 328 957 066 702 677 000 323 072;
  • 93) 0.000 000 000 282 250 328 957 066 702 677 000 323 072 × 2 = 0 + 0.000 000 000 564 500 657 914 133 405 354 000 646 144;
  • 94) 0.000 000 000 564 500 657 914 133 405 354 000 646 144 × 2 = 0 + 0.000 000 001 129 001 315 828 266 810 708 001 292 288;
  • 95) 0.000 000 001 129 001 315 828 266 810 708 001 292 288 × 2 = 0 + 0.000 000 002 258 002 631 656 533 621 416 002 584 576;
  • 96) 0.000 000 002 258 002 631 656 533 621 416 002 584 576 × 2 = 0 + 0.000 000 004 516 005 263 313 067 242 832 005 169 152;
  • 97) 0.000 000 004 516 005 263 313 067 242 832 005 169 152 × 2 = 0 + 0.000 000 009 032 010 526 626 134 485 664 010 338 304;
  • 98) 0.000 000 009 032 010 526 626 134 485 664 010 338 304 × 2 = 0 + 0.000 000 018 064 021 053 252 268 971 328 020 676 608;
  • 99) 0.000 000 018 064 021 053 252 268 971 328 020 676 608 × 2 = 0 + 0.000 000 036 128 042 106 504 537 942 656 041 353 216;
  • 100) 0.000 000 036 128 042 106 504 537 942 656 041 353 216 × 2 = 0 + 0.000 000 072 256 084 213 009 075 885 312 082 706 432;
  • 101) 0.000 000 072 256 084 213 009 075 885 312 082 706 432 × 2 = 0 + 0.000 000 144 512 168 426 018 151 770 624 165 412 864;
  • 102) 0.000 000 144 512 168 426 018 151 770 624 165 412 864 × 2 = 0 + 0.000 000 289 024 336 852 036 303 541 248 330 825 728;
  • 103) 0.000 000 289 024 336 852 036 303 541 248 330 825 728 × 2 = 0 + 0.000 000 578 048 673 704 072 607 082 496 661 651 456;
  • 104) 0.000 000 578 048 673 704 072 607 082 496 661 651 456 × 2 = 0 + 0.000 001 156 097 347 408 145 214 164 993 323 302 912;
  • 105) 0.000 001 156 097 347 408 145 214 164 993 323 302 912 × 2 = 0 + 0.000 002 312 194 694 816 290 428 329 986 646 605 824;
  • 106) 0.000 002 312 194 694 816 290 428 329 986 646 605 824 × 2 = 0 + 0.000 004 624 389 389 632 580 856 659 973 293 211 648;
  • 107) 0.000 004 624 389 389 632 580 856 659 973 293 211 648 × 2 = 0 + 0.000 009 248 778 779 265 161 713 319 946 586 423 296;
  • 108) 0.000 009 248 778 779 265 161 713 319 946 586 423 296 × 2 = 0 + 0.000 018 497 557 558 530 323 426 639 893 172 846 592;
  • 109) 0.000 018 497 557 558 530 323 426 639 893 172 846 592 × 2 = 0 + 0.000 036 995 115 117 060 646 853 279 786 345 693 184;
  • 110) 0.000 036 995 115 117 060 646 853 279 786 345 693 184 × 2 = 0 + 0.000 073 990 230 234 121 293 706 559 572 691 386 368;
  • 111) 0.000 073 990 230 234 121 293 706 559 572 691 386 368 × 2 = 0 + 0.000 147 980 460 468 242 587 413 119 145 382 772 736;
  • 112) 0.000 147 980 460 468 242 587 413 119 145 382 772 736 × 2 = 0 + 0.000 295 960 920 936 485 174 826 238 290 765 545 472;
  • 113) 0.000 295 960 920 936 485 174 826 238 290 765 545 472 × 2 = 0 + 0.000 591 921 841 872 970 349 652 476 581 531 090 944;
  • 114) 0.000 591 921 841 872 970 349 652 476 581 531 090 944 × 2 = 0 + 0.001 183 843 683 745 940 699 304 953 163 062 181 888;
  • 115) 0.001 183 843 683 745 940 699 304 953 163 062 181 888 × 2 = 0 + 0.002 367 687 367 491 881 398 609 906 326 124 363 776;
  • 116) 0.002 367 687 367 491 881 398 609 906 326 124 363 776 × 2 = 0 + 0.004 735 374 734 983 762 797 219 812 652 248 727 552;
  • 117) 0.004 735 374 734 983 762 797 219 812 652 248 727 552 × 2 = 0 + 0.009 470 749 469 967 525 594 439 625 304 497 455 104;
  • 118) 0.009 470 749 469 967 525 594 439 625 304 497 455 104 × 2 = 0 + 0.018 941 498 939 935 051 188 879 250 608 994 910 208;
  • 119) 0.018 941 498 939 935 051 188 879 250 608 994 910 208 × 2 = 0 + 0.037 882 997 879 870 102 377 758 501 217 989 820 416;
  • 120) 0.037 882 997 879 870 102 377 758 501 217 989 820 416 × 2 = 0 + 0.075 765 995 759 740 204 755 517 002 435 979 640 832;
  • 121) 0.075 765 995 759 740 204 755 517 002 435 979 640 832 × 2 = 0 + 0.151 531 991 519 480 409 511 034 004 871 959 281 664;
  • 122) 0.151 531 991 519 480 409 511 034 004 871 959 281 664 × 2 = 0 + 0.303 063 983 038 960 819 022 068 009 743 918 563 328;
  • 123) 0.303 063 983 038 960 819 022 068 009 743 918 563 328 × 2 = 0 + 0.606 127 966 077 921 638 044 136 019 487 837 126 656;
  • 124) 0.606 127 966 077 921 638 044 136 019 487 837 126 656 × 2 = 1 + 0.212 255 932 155 843 276 088 272 038 975 674 253 312;
  • 125) 0.212 255 932 155 843 276 088 272 038 975 674 253 312 × 2 = 0 + 0.424 511 864 311 686 552 176 544 077 951 348 506 624;
  • 126) 0.424 511 864 311 686 552 176 544 077 951 348 506 624 × 2 = 0 + 0.849 023 728 623 373 104 353 088 155 902 697 013 248;
  • 127) 0.849 023 728 623 373 104 353 088 155 902 697 013 248 × 2 = 1 + 0.698 047 457 246 746 208 706 176 311 805 394 026 496;
  • 128) 0.698 047 457 246 746 208 706 176 311 805 394 026 496 × 2 = 1 + 0.396 094 914 493 492 417 412 352 623 610 788 052 992;
  • 129) 0.396 094 914 493 492 417 412 352 623 610 788 052 992 × 2 = 0 + 0.792 189 828 986 984 834 824 705 247 221 576 105 984;
  • 130) 0.792 189 828 986 984 834 824 705 247 221 576 105 984 × 2 = 1 + 0.584 379 657 973 969 669 649 410 494 443 152 211 968;
  • 131) 0.584 379 657 973 969 669 649 410 494 443 152 211 968 × 2 = 1 + 0.168 759 315 947 939 339 298 820 988 886 304 423 936;
  • 132) 0.168 759 315 947 939 339 298 820 988 886 304 423 936 × 2 = 0 + 0.337 518 631 895 878 678 597 641 977 772 608 847 872;
  • 133) 0.337 518 631 895 878 678 597 641 977 772 608 847 872 × 2 = 0 + 0.675 037 263 791 757 357 195 283 955 545 217 695 744;
  • 134) 0.675 037 263 791 757 357 195 283 955 545 217 695 744 × 2 = 1 + 0.350 074 527 583 514 714 390 567 911 090 435 391 488;
  • 135) 0.350 074 527 583 514 714 390 567 911 090 435 391 488 × 2 = 0 + 0.700 149 055 167 029 428 781 135 822 180 870 782 976;
  • 136) 0.700 149 055 167 029 428 781 135 822 180 870 782 976 × 2 = 1 + 0.400 298 110 334 058 857 562 271 644 361 741 565 952;
  • 137) 0.400 298 110 334 058 857 562 271 644 361 741 565 952 × 2 = 0 + 0.800 596 220 668 117 715 124 543 288 723 483 131 904;
  • 138) 0.800 596 220 668 117 715 124 543 288 723 483 131 904 × 2 = 1 + 0.601 192 441 336 235 430 249 086 577 446 966 263 808;
  • 139) 0.601 192 441 336 235 430 249 086 577 446 966 263 808 × 2 = 1 + 0.202 384 882 672 470 860 498 173 154 893 932 527 616;
  • 140) 0.202 384 882 672 470 860 498 173 154 893 932 527 616 × 2 = 0 + 0.404 769 765 344 941 720 996 346 309 787 865 055 232;
  • 141) 0.404 769 765 344 941 720 996 346 309 787 865 055 232 × 2 = 0 + 0.809 539 530 689 883 441 992 692 619 575 730 110 464;
  • 142) 0.809 539 530 689 883 441 992 692 619 575 730 110 464 × 2 = 1 + 0.619 079 061 379 766 883 985 385 239 151 460 220 928;
  • 143) 0.619 079 061 379 766 883 985 385 239 151 460 220 928 × 2 = 1 + 0.238 158 122 759 533 767 970 770 478 302 920 441 856;
  • 144) 0.238 158 122 759 533 767 970 770 478 302 920 441 856 × 2 = 0 + 0.476 316 245 519 067 535 941 540 956 605 840 883 712;
  • 145) 0.476 316 245 519 067 535 941 540 956 605 840 883 712 × 2 = 0 + 0.952 632 491 038 135 071 883 081 913 211 681 767 424;
  • 146) 0.952 632 491 038 135 071 883 081 913 211 681 767 424 × 2 = 1 + 0.905 264 982 076 270 143 766 163 826 423 363 534 848;
  • 147) 0.905 264 982 076 270 143 766 163 826 423 363 534 848 × 2 = 1 + 0.810 529 964 152 540 287 532 327 652 846 727 069 696;

We didn't get any fractional part that was equal to zero. But we had enough iterations (over Mantissa limit) and at least one integer that was different from zero => FULL STOP (Losing precision - the converted number we get in the end will be just a very good approximation of the initial one).


5. Construct the base 2 representation of the fractional part of the number.

Take all the integer parts of the multiplying operations, starting from the top of the constructed list above:


0.000 000 000 000 000 000 000 000 000 000 000 000 057(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0011 0110 0101 0110 0110 011(2)

6. Positive number before normalization:

0.000 000 000 000 000 000 000 000 000 000 000 000 057(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0011 0110 0101 0110 0110 011(2)

7. Normalize the binary representation of the number.

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


0.000 000 000 000 000 000 000 000 000 000 000 000 057(10) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0011 0110 0101 0110 0110 011(2) =


0.0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0011 0110 0101 0110 0110 011(2) × 20 =


1.0011 0110 0101 0110 0110 011(2) × 2-124


8. Up to this moment, there are the following elements that would feed into the 32 bit single precision IEEE 754 binary floating point representation:

Sign 1 (a negative number)


Exponent (unadjusted): -124


Mantissa (not normalized):
1.0011 0110 0101 0110 0110 011


9. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


-124 + 2(8-1) - 1 =


(-124 + 127)(10) =


3(10)


10. Convert the adjusted exponent from the decimal (base 10) to 8 bit binary.

Use the same technique of repeatedly dividing by 2:


  • division = quotient + remainder;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

11. Construct the base 2 representation of the adjusted exponent.

Take all the remainders starting from the bottom of the list constructed above.


Exponent (adjusted) =


3(10) =


0000 0011(2)


12. Normalize the mantissa.

a) Remove the leading (the leftmost) bit, since it's allways 1, and the decimal point, if the case.


b) Adjust its length to 23 bits, only if necessary (not the case here).


Mantissa (normalized) =


1. 001 1011 0010 1011 0011 0011 =


001 1011 0010 1011 0011 0011


13. The three elements that make up the number's 32 bit single precision IEEE 754 binary floating point representation:

Sign (1 bit) =
1 (a negative number)


Exponent (8 bits) =
0000 0011


Mantissa (23 bits) =
001 1011 0010 1011 0011 0011


Decimal number -0.000 000 000 000 000 000 000 000 000 000 000 000 057 converted to 32 bit single precision IEEE 754 binary floating point representation:

1 - 0000 0011 - 001 1011 0010 1011 0011 0011


How to convert decimal numbers from base ten to 32 bit single precision IEEE 754 binary floating point standard

Follow the steps below to convert a base 10 decimal number to 32 bit single precision IEEE 754 binary floating point:

  • 1. If the number to be converted is negative, start with its the positive version.
  • 2. First convert the integer part. Divide repeatedly by 2 the base ten positive representation of the integer number that is to be converted to binary, until we get a quotient that is equal to zero, keeping track of each remainder.
  • 3. Construct the base 2 representation of the positive integer part of the number, by taking all the remainders of the previous dividing operations, starting from the bottom of the list constructed above. Thus, the last remainder of the divisions becomes the first symbol (the leftmost) of the base two number, while the first remainder becomes the last symbol (the rightmost).
  • 4. Then convert the fractional part. Multiply the number repeatedly by 2, until we get a fractional part that is equal to zero, keeping track of each integer part of the results.
  • 5. Construct the base 2 representation of the fractional part of the number by taking all the integer parts of the previous multiplying operations, starting from the top of the constructed list above (they should appear in the binary representation, from left to right, in the order they have been calculated).
  • 6. Normalize the binary representation of the number, by shifting the decimal point (or if you prefer, the decimal mark) "n" positions either to the left or to the right, so that only one non zero digit remains to the left of the decimal point.
  • 7. Adjust the exponent in 8 bit excess/bias notation and then convert it from decimal (base 10) to 8 bit binary, by using the same technique of repeatedly dividing by 2, as shown above:
    Exponent (adjusted) = Exponent (unadjusted) + 2(8-1) - 1
  • 8. Normalize mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal sign if the case) and adjust its length to 23 bits, either by removing the excess bits from the right (losing precision...) or by adding extra '0' bits to the right.
  • 9. Sign (it takes 1 bit) is either 1 for a negative or 0 for a positive number.

Example: convert the negative number -25.347 from decimal system (base ten) to 32 bit single precision IEEE 754 binary floating point:

  • 1. Start with the positive version of the number:

    |-25.347| = 25.347

  • 2. First convert the integer part, 25. Divide it repeatedly by 2, keeping track of each remainder, until we get a quotient that is equal to zero:
    • division = quotient + remainder;
    • 25 ÷ 2 = 12 + 1;
    • 12 ÷ 2 = 6 + 0;
    • 6 ÷ 2 = 3 + 0;
    • 3 ÷ 2 = 1 + 1;
    • 1 ÷ 2 = 0 + 1;
    • We have encountered a quotient that is ZERO => FULL STOP
  • 3. Construct the base 2 representation of the integer part of the number by taking all the remainders of the previous dividing operations, starting from the bottom of the list constructed above:

    25(10) = 1 1001(2)

  • 4. Then convert the fractional part, 0.347. Multiply repeatedly by 2, keeping track of each integer part of the results, until we get a fractional part that is equal to zero:
    • #) multiplying = integer + fractional part;
    • 1) 0.347 × 2 = 0 + 0.694;
    • 2) 0.694 × 2 = 1 + 0.388;
    • 3) 0.388 × 2 = 0 + 0.776;
    • 4) 0.776 × 2 = 1 + 0.552;
    • 5) 0.552 × 2 = 1 + 0.104;
    • 6) 0.104 × 2 = 0 + 0.208;
    • 7) 0.208 × 2 = 0 + 0.416;
    • 8) 0.416 × 2 = 0 + 0.832;
    • 9) 0.832 × 2 = 1 + 0.664;
    • 10) 0.664 × 2 = 1 + 0.328;
    • 11) 0.328 × 2 = 0 + 0.656;
    • 12) 0.656 × 2 = 1 + 0.312;
    • 13) 0.312 × 2 = 0 + 0.624;
    • 14) 0.624 × 2 = 1 + 0.248;
    • 15) 0.248 × 2 = 0 + 0.496;
    • 16) 0.496 × 2 = 0 + 0.992;
    • 17) 0.992 × 2 = 1 + 0.984;
    • 18) 0.984 × 2 = 1 + 0.968;
    • 19) 0.968 × 2 = 1 + 0.936;
    • 20) 0.936 × 2 = 1 + 0.872;
    • 21) 0.872 × 2 = 1 + 0.744;
    • 22) 0.744 × 2 = 1 + 0.488;
    • 23) 0.488 × 2 = 0 + 0.976;
    • 24) 0.976 × 2 = 1 + 0.952;
    • We didn't get any fractional part that was equal to zero. But we had enough iterations (over Mantissa limit = 23) and at least one integer part that was different from zero => FULL STOP (losing precision...).
  • 5. Construct the base 2 representation of the fractional part of the number, by taking all the integer parts of the previous multiplying operations, starting from the top of the constructed list above:

    0.347(10) = 0.0101 1000 1101 0100 1111 1101(2)

  • 6. Summarizing - the positive number before normalization:

    25.347(10) = 1 1001.0101 1000 1101 0100 1111 1101(2)

  • 7. Normalize the binary representation of the number, shifting the decimal point 4 positions to the left so that only one non-zero digit stays to the left of the decimal point:

    25.347(10) =
    1 1001.0101 1000 1101 0100 1111 1101(2) =
    1 1001.0101 1000 1101 0100 1111 1101(2) × 20 =
    1.1001 0101 1000 1101 0100 1111 1101(2) × 24

  • 8. Up to this moment, there are the following elements that would feed into the 32 bit single precision IEEE 754 binary floating point:

    Sign: 1 (a negative number)

    Exponent (unadjusted): 4

    Mantissa (not-normalized): 1.1001 0101 1000 1101 0100 1111 1101

  • 9. Adjust the exponent in 8 bit excess/bias notation and then convert it from decimal (base 10) to 8 bit binary (base 2), by using the same technique of repeatedly dividing it by 2, as already demonstrated above:

    Exponent (adjusted) = Exponent (unadjusted) + 2(8-1) - 1 = (4 + 127)(10) = 131(10) =
    1000 0011(2)

  • 10. Normalize the mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal point) and adjust its length to 23 bits, by removing the excess bits from the right (losing precision...):

    Mantissa (not-normalized): 1.1001 0101 1000 1101 0100 1111 1101

    Mantissa (normalized): 100 1010 1100 0110 1010 0111

  • Conclusion:

    Sign (1 bit) = 1 (a negative number)

    Exponent (8 bits) = 1000 0011

    Mantissa (23 bits) = 100 1010 1100 0110 1010 0111

  • Number -25.347, converted from the decimal system (base 10) to 32 bit single precision IEEE 754 binary floating point =
    1 - 1000 0011 - 100 1010 1100 0110 1010 0111