111 100 111 100 001 111 000 000 000 000 343 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 111 100 111 100 001 111 000 000 000 000 343(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
111 100 111 100 001 111 000 000 000 000 343(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. 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;
  • 111 100 111 100 001 111 000 000 000 000 343 ÷ 2 = 55 550 055 550 000 555 500 000 000 000 171 + 1;
  • 55 550 055 550 000 555 500 000 000 000 171 ÷ 2 = 27 775 027 775 000 277 750 000 000 000 085 + 1;
  • 27 775 027 775 000 277 750 000 000 000 085 ÷ 2 = 13 887 513 887 500 138 875 000 000 000 042 + 1;
  • 13 887 513 887 500 138 875 000 000 000 042 ÷ 2 = 6 943 756 943 750 069 437 500 000 000 021 + 0;
  • 6 943 756 943 750 069 437 500 000 000 021 ÷ 2 = 3 471 878 471 875 034 718 750 000 000 010 + 1;
  • 3 471 878 471 875 034 718 750 000 000 010 ÷ 2 = 1 735 939 235 937 517 359 375 000 000 005 + 0;
  • 1 735 939 235 937 517 359 375 000 000 005 ÷ 2 = 867 969 617 968 758 679 687 500 000 002 + 1;
  • 867 969 617 968 758 679 687 500 000 002 ÷ 2 = 433 984 808 984 379 339 843 750 000 001 + 0;
  • 433 984 808 984 379 339 843 750 000 001 ÷ 2 = 216 992 404 492 189 669 921 875 000 000 + 1;
  • 216 992 404 492 189 669 921 875 000 000 ÷ 2 = 108 496 202 246 094 834 960 937 500 000 + 0;
  • 108 496 202 246 094 834 960 937 500 000 ÷ 2 = 54 248 101 123 047 417 480 468 750 000 + 0;
  • 54 248 101 123 047 417 480 468 750 000 ÷ 2 = 27 124 050 561 523 708 740 234 375 000 + 0;
  • 27 124 050 561 523 708 740 234 375 000 ÷ 2 = 13 562 025 280 761 854 370 117 187 500 + 0;
  • 13 562 025 280 761 854 370 117 187 500 ÷ 2 = 6 781 012 640 380 927 185 058 593 750 + 0;
  • 6 781 012 640 380 927 185 058 593 750 ÷ 2 = 3 390 506 320 190 463 592 529 296 875 + 0;
  • 3 390 506 320 190 463 592 529 296 875 ÷ 2 = 1 695 253 160 095 231 796 264 648 437 + 1;
  • 1 695 253 160 095 231 796 264 648 437 ÷ 2 = 847 626 580 047 615 898 132 324 218 + 1;
  • 847 626 580 047 615 898 132 324 218 ÷ 2 = 423 813 290 023 807 949 066 162 109 + 0;
  • 423 813 290 023 807 949 066 162 109 ÷ 2 = 211 906 645 011 903 974 533 081 054 + 1;
  • 211 906 645 011 903 974 533 081 054 ÷ 2 = 105 953 322 505 951 987 266 540 527 + 0;
  • 105 953 322 505 951 987 266 540 527 ÷ 2 = 52 976 661 252 975 993 633 270 263 + 1;
  • 52 976 661 252 975 993 633 270 263 ÷ 2 = 26 488 330 626 487 996 816 635 131 + 1;
  • 26 488 330 626 487 996 816 635 131 ÷ 2 = 13 244 165 313 243 998 408 317 565 + 1;
  • 13 244 165 313 243 998 408 317 565 ÷ 2 = 6 622 082 656 621 999 204 158 782 + 1;
  • 6 622 082 656 621 999 204 158 782 ÷ 2 = 3 311 041 328 310 999 602 079 391 + 0;
  • 3 311 041 328 310 999 602 079 391 ÷ 2 = 1 655 520 664 155 499 801 039 695 + 1;
  • 1 655 520 664 155 499 801 039 695 ÷ 2 = 827 760 332 077 749 900 519 847 + 1;
  • 827 760 332 077 749 900 519 847 ÷ 2 = 413 880 166 038 874 950 259 923 + 1;
  • 413 880 166 038 874 950 259 923 ÷ 2 = 206 940 083 019 437 475 129 961 + 1;
  • 206 940 083 019 437 475 129 961 ÷ 2 = 103 470 041 509 718 737 564 980 + 1;
  • 103 470 041 509 718 737 564 980 ÷ 2 = 51 735 020 754 859 368 782 490 + 0;
  • 51 735 020 754 859 368 782 490 ÷ 2 = 25 867 510 377 429 684 391 245 + 0;
  • 25 867 510 377 429 684 391 245 ÷ 2 = 12 933 755 188 714 842 195 622 + 1;
  • 12 933 755 188 714 842 195 622 ÷ 2 = 6 466 877 594 357 421 097 811 + 0;
  • 6 466 877 594 357 421 097 811 ÷ 2 = 3 233 438 797 178 710 548 905 + 1;
  • 3 233 438 797 178 710 548 905 ÷ 2 = 1 616 719 398 589 355 274 452 + 1;
  • 1 616 719 398 589 355 274 452 ÷ 2 = 808 359 699 294 677 637 226 + 0;
  • 808 359 699 294 677 637 226 ÷ 2 = 404 179 849 647 338 818 613 + 0;
  • 404 179 849 647 338 818 613 ÷ 2 = 202 089 924 823 669 409 306 + 1;
  • 202 089 924 823 669 409 306 ÷ 2 = 101 044 962 411 834 704 653 + 0;
  • 101 044 962 411 834 704 653 ÷ 2 = 50 522 481 205 917 352 326 + 1;
  • 50 522 481 205 917 352 326 ÷ 2 = 25 261 240 602 958 676 163 + 0;
  • 25 261 240 602 958 676 163 ÷ 2 = 12 630 620 301 479 338 081 + 1;
  • 12 630 620 301 479 338 081 ÷ 2 = 6 315 310 150 739 669 040 + 1;
  • 6 315 310 150 739 669 040 ÷ 2 = 3 157 655 075 369 834 520 + 0;
  • 3 157 655 075 369 834 520 ÷ 2 = 1 578 827 537 684 917 260 + 0;
  • 1 578 827 537 684 917 260 ÷ 2 = 789 413 768 842 458 630 + 0;
  • 789 413 768 842 458 630 ÷ 2 = 394 706 884 421 229 315 + 0;
  • 394 706 884 421 229 315 ÷ 2 = 197 353 442 210 614 657 + 1;
  • 197 353 442 210 614 657 ÷ 2 = 98 676 721 105 307 328 + 1;
  • 98 676 721 105 307 328 ÷ 2 = 49 338 360 552 653 664 + 0;
  • 49 338 360 552 653 664 ÷ 2 = 24 669 180 276 326 832 + 0;
  • 24 669 180 276 326 832 ÷ 2 = 12 334 590 138 163 416 + 0;
  • 12 334 590 138 163 416 ÷ 2 = 6 167 295 069 081 708 + 0;
  • 6 167 295 069 081 708 ÷ 2 = 3 083 647 534 540 854 + 0;
  • 3 083 647 534 540 854 ÷ 2 = 1 541 823 767 270 427 + 0;
  • 1 541 823 767 270 427 ÷ 2 = 770 911 883 635 213 + 1;
  • 770 911 883 635 213 ÷ 2 = 385 455 941 817 606 + 1;
  • 385 455 941 817 606 ÷ 2 = 192 727 970 908 803 + 0;
  • 192 727 970 908 803 ÷ 2 = 96 363 985 454 401 + 1;
  • 96 363 985 454 401 ÷ 2 = 48 181 992 727 200 + 1;
  • 48 181 992 727 200 ÷ 2 = 24 090 996 363 600 + 0;
  • 24 090 996 363 600 ÷ 2 = 12 045 498 181 800 + 0;
  • 12 045 498 181 800 ÷ 2 = 6 022 749 090 900 + 0;
  • 6 022 749 090 900 ÷ 2 = 3 011 374 545 450 + 0;
  • 3 011 374 545 450 ÷ 2 = 1 505 687 272 725 + 0;
  • 1 505 687 272 725 ÷ 2 = 752 843 636 362 + 1;
  • 752 843 636 362 ÷ 2 = 376 421 818 181 + 0;
  • 376 421 818 181 ÷ 2 = 188 210 909 090 + 1;
  • 188 210 909 090 ÷ 2 = 94 105 454 545 + 0;
  • 94 105 454 545 ÷ 2 = 47 052 727 272 + 1;
  • 47 052 727 272 ÷ 2 = 23 526 363 636 + 0;
  • 23 526 363 636 ÷ 2 = 11 763 181 818 + 0;
  • 11 763 181 818 ÷ 2 = 5 881 590 909 + 0;
  • 5 881 590 909 ÷ 2 = 2 940 795 454 + 1;
  • 2 940 795 454 ÷ 2 = 1 470 397 727 + 0;
  • 1 470 397 727 ÷ 2 = 735 198 863 + 1;
  • 735 198 863 ÷ 2 = 367 599 431 + 1;
  • 367 599 431 ÷ 2 = 183 799 715 + 1;
  • 183 799 715 ÷ 2 = 91 899 857 + 1;
  • 91 899 857 ÷ 2 = 45 949 928 + 1;
  • 45 949 928 ÷ 2 = 22 974 964 + 0;
  • 22 974 964 ÷ 2 = 11 487 482 + 0;
  • 11 487 482 ÷ 2 = 5 743 741 + 0;
  • 5 743 741 ÷ 2 = 2 871 870 + 1;
  • 2 871 870 ÷ 2 = 1 435 935 + 0;
  • 1 435 935 ÷ 2 = 717 967 + 1;
  • 717 967 ÷ 2 = 358 983 + 1;
  • 358 983 ÷ 2 = 179 491 + 1;
  • 179 491 ÷ 2 = 89 745 + 1;
  • 89 745 ÷ 2 = 44 872 + 1;
  • 44 872 ÷ 2 = 22 436 + 0;
  • 22 436 ÷ 2 = 11 218 + 0;
  • 11 218 ÷ 2 = 5 609 + 0;
  • 5 609 ÷ 2 = 2 804 + 1;
  • 2 804 ÷ 2 = 1 402 + 0;
  • 1 402 ÷ 2 = 701 + 0;
  • 701 ÷ 2 = 350 + 1;
  • 350 ÷ 2 = 175 + 0;
  • 175 ÷ 2 = 87 + 1;
  • 87 ÷ 2 = 43 + 1;
  • 43 ÷ 2 = 21 + 1;
  • 21 ÷ 2 = 10 + 1;
  • 10 ÷ 2 = 5 + 0;
  • 5 ÷ 2 = 2 + 1;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

2. Construct the base 2 representation of the positive number.

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

111 100 111 100 001 111 000 000 000 000 343(10) =


101 0111 1010 0100 0111 1101 0001 1111 0100 0101 0100 0001 1011 0000 0011 0000 1101 0100 1101 0011 1110 1111 0101 1000 0001 0101 0111(2)


3. Normalize the binary representation of the number.

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


111 100 111 100 001 111 000 000 000 000 343(10) =


101 0111 1010 0100 0111 1101 0001 1111 0100 0101 0100 0001 1011 0000 0011 0000 1101 0100 1101 0011 1110 1111 0101 1000 0001 0101 0111(2) =


101 0111 1010 0100 0111 1101 0001 1111 0100 0101 0100 0001 1011 0000 0011 0000 1101 0100 1101 0011 1110 1111 0101 1000 0001 0101 0111(2) × 20 =


1.0101 1110 1001 0001 1111 0100 0111 1101 0001 0101 0000 0110 1100 0000 1100 0011 0101 0011 0100 1111 1011 1101 0110 0000 0101 0101 11(2) × 2106


4. 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 0 (a positive number)


Exponent (unadjusted): 106


Mantissa (not normalized):
1.0101 1110 1001 0001 1111 0100 0111 1101 0001 0101 0000 0110 1100 0000 1100 0011 0101 0011 0100 1111 1011 1101 0110 0000 0101 0101 11


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


106 + 2(8-1) - 1 =


(106 + 127)(10) =


233(10)


6. 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;
  • 233 ÷ 2 = 116 + 1;
  • 116 ÷ 2 = 58 + 0;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

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

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


Exponent (adjusted) =


233(10) =


1110 1001(2)


8. 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, by removing the excess bits, from the right (if any of the excess bits is set on 1, we are losing precision...).


Mantissa (normalized) =


1. 010 1111 0100 1000 1111 1010 001 1111 0100 0101 0100 0001 1011 0000 0011 0000 1101 0100 1101 0011 1110 1111 0101 1000 0001 0101 0111 =


010 1111 0100 1000 1111 1010


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

Sign (1 bit) =
0 (a positive number)


Exponent (8 bits) =
1110 1001


Mantissa (23 bits) =
010 1111 0100 1000 1111 1010


Decimal number 111 100 111 100 001 111 000 000 000 000 343 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1001 - 010 1111 0100 1000 1111 1010


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