11 001 000 100 000 001 000 110 011 141 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 11 001 000 100 000 001 000 110 011 141(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
11 001 000 100 000 001 000 110 011 141(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;
  • 11 001 000 100 000 001 000 110 011 141 ÷ 2 = 5 500 500 050 000 000 500 055 005 570 + 1;
  • 5 500 500 050 000 000 500 055 005 570 ÷ 2 = 2 750 250 025 000 000 250 027 502 785 + 0;
  • 2 750 250 025 000 000 250 027 502 785 ÷ 2 = 1 375 125 012 500 000 125 013 751 392 + 1;
  • 1 375 125 012 500 000 125 013 751 392 ÷ 2 = 687 562 506 250 000 062 506 875 696 + 0;
  • 687 562 506 250 000 062 506 875 696 ÷ 2 = 343 781 253 125 000 031 253 437 848 + 0;
  • 343 781 253 125 000 031 253 437 848 ÷ 2 = 171 890 626 562 500 015 626 718 924 + 0;
  • 171 890 626 562 500 015 626 718 924 ÷ 2 = 85 945 313 281 250 007 813 359 462 + 0;
  • 85 945 313 281 250 007 813 359 462 ÷ 2 = 42 972 656 640 625 003 906 679 731 + 0;
  • 42 972 656 640 625 003 906 679 731 ÷ 2 = 21 486 328 320 312 501 953 339 865 + 1;
  • 21 486 328 320 312 501 953 339 865 ÷ 2 = 10 743 164 160 156 250 976 669 932 + 1;
  • 10 743 164 160 156 250 976 669 932 ÷ 2 = 5 371 582 080 078 125 488 334 966 + 0;
  • 5 371 582 080 078 125 488 334 966 ÷ 2 = 2 685 791 040 039 062 744 167 483 + 0;
  • 2 685 791 040 039 062 744 167 483 ÷ 2 = 1 342 895 520 019 531 372 083 741 + 1;
  • 1 342 895 520 019 531 372 083 741 ÷ 2 = 671 447 760 009 765 686 041 870 + 1;
  • 671 447 760 009 765 686 041 870 ÷ 2 = 335 723 880 004 882 843 020 935 + 0;
  • 335 723 880 004 882 843 020 935 ÷ 2 = 167 861 940 002 441 421 510 467 + 1;
  • 167 861 940 002 441 421 510 467 ÷ 2 = 83 930 970 001 220 710 755 233 + 1;
  • 83 930 970 001 220 710 755 233 ÷ 2 = 41 965 485 000 610 355 377 616 + 1;
  • 41 965 485 000 610 355 377 616 ÷ 2 = 20 982 742 500 305 177 688 808 + 0;
  • 20 982 742 500 305 177 688 808 ÷ 2 = 10 491 371 250 152 588 844 404 + 0;
  • 10 491 371 250 152 588 844 404 ÷ 2 = 5 245 685 625 076 294 422 202 + 0;
  • 5 245 685 625 076 294 422 202 ÷ 2 = 2 622 842 812 538 147 211 101 + 0;
  • 2 622 842 812 538 147 211 101 ÷ 2 = 1 311 421 406 269 073 605 550 + 1;
  • 1 311 421 406 269 073 605 550 ÷ 2 = 655 710 703 134 536 802 775 + 0;
  • 655 710 703 134 536 802 775 ÷ 2 = 327 855 351 567 268 401 387 + 1;
  • 327 855 351 567 268 401 387 ÷ 2 = 163 927 675 783 634 200 693 + 1;
  • 163 927 675 783 634 200 693 ÷ 2 = 81 963 837 891 817 100 346 + 1;
  • 81 963 837 891 817 100 346 ÷ 2 = 40 981 918 945 908 550 173 + 0;
  • 40 981 918 945 908 550 173 ÷ 2 = 20 490 959 472 954 275 086 + 1;
  • 20 490 959 472 954 275 086 ÷ 2 = 10 245 479 736 477 137 543 + 0;
  • 10 245 479 736 477 137 543 ÷ 2 = 5 122 739 868 238 568 771 + 1;
  • 5 122 739 868 238 568 771 ÷ 2 = 2 561 369 934 119 284 385 + 1;
  • 2 561 369 934 119 284 385 ÷ 2 = 1 280 684 967 059 642 192 + 1;
  • 1 280 684 967 059 642 192 ÷ 2 = 640 342 483 529 821 096 + 0;
  • 640 342 483 529 821 096 ÷ 2 = 320 171 241 764 910 548 + 0;
  • 320 171 241 764 910 548 ÷ 2 = 160 085 620 882 455 274 + 0;
  • 160 085 620 882 455 274 ÷ 2 = 80 042 810 441 227 637 + 0;
  • 80 042 810 441 227 637 ÷ 2 = 40 021 405 220 613 818 + 1;
  • 40 021 405 220 613 818 ÷ 2 = 20 010 702 610 306 909 + 0;
  • 20 010 702 610 306 909 ÷ 2 = 10 005 351 305 153 454 + 1;
  • 10 005 351 305 153 454 ÷ 2 = 5 002 675 652 576 727 + 0;
  • 5 002 675 652 576 727 ÷ 2 = 2 501 337 826 288 363 + 1;
  • 2 501 337 826 288 363 ÷ 2 = 1 250 668 913 144 181 + 1;
  • 1 250 668 913 144 181 ÷ 2 = 625 334 456 572 090 + 1;
  • 625 334 456 572 090 ÷ 2 = 312 667 228 286 045 + 0;
  • 312 667 228 286 045 ÷ 2 = 156 333 614 143 022 + 1;
  • 156 333 614 143 022 ÷ 2 = 78 166 807 071 511 + 0;
  • 78 166 807 071 511 ÷ 2 = 39 083 403 535 755 + 1;
  • 39 083 403 535 755 ÷ 2 = 19 541 701 767 877 + 1;
  • 19 541 701 767 877 ÷ 2 = 9 770 850 883 938 + 1;
  • 9 770 850 883 938 ÷ 2 = 4 885 425 441 969 + 0;
  • 4 885 425 441 969 ÷ 2 = 2 442 712 720 984 + 1;
  • 2 442 712 720 984 ÷ 2 = 1 221 356 360 492 + 0;
  • 1 221 356 360 492 ÷ 2 = 610 678 180 246 + 0;
  • 610 678 180 246 ÷ 2 = 305 339 090 123 + 0;
  • 305 339 090 123 ÷ 2 = 152 669 545 061 + 1;
  • 152 669 545 061 ÷ 2 = 76 334 772 530 + 1;
  • 76 334 772 530 ÷ 2 = 38 167 386 265 + 0;
  • 38 167 386 265 ÷ 2 = 19 083 693 132 + 1;
  • 19 083 693 132 ÷ 2 = 9 541 846 566 + 0;
  • 9 541 846 566 ÷ 2 = 4 770 923 283 + 0;
  • 4 770 923 283 ÷ 2 = 2 385 461 641 + 1;
  • 2 385 461 641 ÷ 2 = 1 192 730 820 + 1;
  • 1 192 730 820 ÷ 2 = 596 365 410 + 0;
  • 596 365 410 ÷ 2 = 298 182 705 + 0;
  • 298 182 705 ÷ 2 = 149 091 352 + 1;
  • 149 091 352 ÷ 2 = 74 545 676 + 0;
  • 74 545 676 ÷ 2 = 37 272 838 + 0;
  • 37 272 838 ÷ 2 = 18 636 419 + 0;
  • 18 636 419 ÷ 2 = 9 318 209 + 1;
  • 9 318 209 ÷ 2 = 4 659 104 + 1;
  • 4 659 104 ÷ 2 = 2 329 552 + 0;
  • 2 329 552 ÷ 2 = 1 164 776 + 0;
  • 1 164 776 ÷ 2 = 582 388 + 0;
  • 582 388 ÷ 2 = 291 194 + 0;
  • 291 194 ÷ 2 = 145 597 + 0;
  • 145 597 ÷ 2 = 72 798 + 1;
  • 72 798 ÷ 2 = 36 399 + 0;
  • 36 399 ÷ 2 = 18 199 + 1;
  • 18 199 ÷ 2 = 9 099 + 1;
  • 9 099 ÷ 2 = 4 549 + 1;
  • 4 549 ÷ 2 = 2 274 + 1;
  • 2 274 ÷ 2 = 1 137 + 0;
  • 1 137 ÷ 2 = 568 + 1;
  • 568 ÷ 2 = 284 + 0;
  • 284 ÷ 2 = 142 + 0;
  • 142 ÷ 2 = 71 + 0;
  • 71 ÷ 2 = 35 + 1;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 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.

11 001 000 100 000 001 000 110 011 141(10) =


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


3. Normalize the binary representation of the number.

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


11 001 000 100 000 001 000 110 011 141(10) =


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


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


1.0001 1100 0101 1110 1000 0011 0001 0011 0010 1100 0101 1101 0111 0101 0000 1110 1011 1010 0001 1101 1001 1000 0010 1(2) × 293


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


Mantissa (not normalized):
1.0001 1100 0101 1110 1000 0011 0001 0011 0010 1100 0101 1101 0111 0101 0000 1110 1011 1010 0001 1101 1001 1000 0010 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


93 + 2(8-1) - 1 =


(93 + 127)(10) =


220(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;
  • 220 ÷ 2 = 110 + 0;
  • 110 ÷ 2 = 55 + 0;
  • 55 ÷ 2 = 27 + 1;
  • 27 ÷ 2 = 13 + 1;
  • 13 ÷ 2 = 6 + 1;
  • 6 ÷ 2 = 3 + 0;
  • 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) =


220(10) =


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


000 1110 0010 1111 0100 0001


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


Mantissa (23 bits) =
000 1110 0010 1111 0100 0001


Decimal number 11 001 000 100 000 001 000 110 011 141 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1100 - 000 1110 0010 1111 0100 0001


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