1 100 011 010 001 110 000 000 001 105 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 100 011 010 001 110 000 000 001 105(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
1 100 011 010 001 110 000 000 001 105(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;
  • 1 100 011 010 001 110 000 000 001 105 ÷ 2 = 550 005 505 000 555 000 000 000 552 + 1;
  • 550 005 505 000 555 000 000 000 552 ÷ 2 = 275 002 752 500 277 500 000 000 276 + 0;
  • 275 002 752 500 277 500 000 000 276 ÷ 2 = 137 501 376 250 138 750 000 000 138 + 0;
  • 137 501 376 250 138 750 000 000 138 ÷ 2 = 68 750 688 125 069 375 000 000 069 + 0;
  • 68 750 688 125 069 375 000 000 069 ÷ 2 = 34 375 344 062 534 687 500 000 034 + 1;
  • 34 375 344 062 534 687 500 000 034 ÷ 2 = 17 187 672 031 267 343 750 000 017 + 0;
  • 17 187 672 031 267 343 750 000 017 ÷ 2 = 8 593 836 015 633 671 875 000 008 + 1;
  • 8 593 836 015 633 671 875 000 008 ÷ 2 = 4 296 918 007 816 835 937 500 004 + 0;
  • 4 296 918 007 816 835 937 500 004 ÷ 2 = 2 148 459 003 908 417 968 750 002 + 0;
  • 2 148 459 003 908 417 968 750 002 ÷ 2 = 1 074 229 501 954 208 984 375 001 + 0;
  • 1 074 229 501 954 208 984 375 001 ÷ 2 = 537 114 750 977 104 492 187 500 + 1;
  • 537 114 750 977 104 492 187 500 ÷ 2 = 268 557 375 488 552 246 093 750 + 0;
  • 268 557 375 488 552 246 093 750 ÷ 2 = 134 278 687 744 276 123 046 875 + 0;
  • 134 278 687 744 276 123 046 875 ÷ 2 = 67 139 343 872 138 061 523 437 + 1;
  • 67 139 343 872 138 061 523 437 ÷ 2 = 33 569 671 936 069 030 761 718 + 1;
  • 33 569 671 936 069 030 761 718 ÷ 2 = 16 784 835 968 034 515 380 859 + 0;
  • 16 784 835 968 034 515 380 859 ÷ 2 = 8 392 417 984 017 257 690 429 + 1;
  • 8 392 417 984 017 257 690 429 ÷ 2 = 4 196 208 992 008 628 845 214 + 1;
  • 4 196 208 992 008 628 845 214 ÷ 2 = 2 098 104 496 004 314 422 607 + 0;
  • 2 098 104 496 004 314 422 607 ÷ 2 = 1 049 052 248 002 157 211 303 + 1;
  • 1 049 052 248 002 157 211 303 ÷ 2 = 524 526 124 001 078 605 651 + 1;
  • 524 526 124 001 078 605 651 ÷ 2 = 262 263 062 000 539 302 825 + 1;
  • 262 263 062 000 539 302 825 ÷ 2 = 131 131 531 000 269 651 412 + 1;
  • 131 131 531 000 269 651 412 ÷ 2 = 65 565 765 500 134 825 706 + 0;
  • 65 565 765 500 134 825 706 ÷ 2 = 32 782 882 750 067 412 853 + 0;
  • 32 782 882 750 067 412 853 ÷ 2 = 16 391 441 375 033 706 426 + 1;
  • 16 391 441 375 033 706 426 ÷ 2 = 8 195 720 687 516 853 213 + 0;
  • 8 195 720 687 516 853 213 ÷ 2 = 4 097 860 343 758 426 606 + 1;
  • 4 097 860 343 758 426 606 ÷ 2 = 2 048 930 171 879 213 303 + 0;
  • 2 048 930 171 879 213 303 ÷ 2 = 1 024 465 085 939 606 651 + 1;
  • 1 024 465 085 939 606 651 ÷ 2 = 512 232 542 969 803 325 + 1;
  • 512 232 542 969 803 325 ÷ 2 = 256 116 271 484 901 662 + 1;
  • 256 116 271 484 901 662 ÷ 2 = 128 058 135 742 450 831 + 0;
  • 128 058 135 742 450 831 ÷ 2 = 64 029 067 871 225 415 + 1;
  • 64 029 067 871 225 415 ÷ 2 = 32 014 533 935 612 707 + 1;
  • 32 014 533 935 612 707 ÷ 2 = 16 007 266 967 806 353 + 1;
  • 16 007 266 967 806 353 ÷ 2 = 8 003 633 483 903 176 + 1;
  • 8 003 633 483 903 176 ÷ 2 = 4 001 816 741 951 588 + 0;
  • 4 001 816 741 951 588 ÷ 2 = 2 000 908 370 975 794 + 0;
  • 2 000 908 370 975 794 ÷ 2 = 1 000 454 185 487 897 + 0;
  • 1 000 454 185 487 897 ÷ 2 = 500 227 092 743 948 + 1;
  • 500 227 092 743 948 ÷ 2 = 250 113 546 371 974 + 0;
  • 250 113 546 371 974 ÷ 2 = 125 056 773 185 987 + 0;
  • 125 056 773 185 987 ÷ 2 = 62 528 386 592 993 + 1;
  • 62 528 386 592 993 ÷ 2 = 31 264 193 296 496 + 1;
  • 31 264 193 296 496 ÷ 2 = 15 632 096 648 248 + 0;
  • 15 632 096 648 248 ÷ 2 = 7 816 048 324 124 + 0;
  • 7 816 048 324 124 ÷ 2 = 3 908 024 162 062 + 0;
  • 3 908 024 162 062 ÷ 2 = 1 954 012 081 031 + 0;
  • 1 954 012 081 031 ÷ 2 = 977 006 040 515 + 1;
  • 977 006 040 515 ÷ 2 = 488 503 020 257 + 1;
  • 488 503 020 257 ÷ 2 = 244 251 510 128 + 1;
  • 244 251 510 128 ÷ 2 = 122 125 755 064 + 0;
  • 122 125 755 064 ÷ 2 = 61 062 877 532 + 0;
  • 61 062 877 532 ÷ 2 = 30 531 438 766 + 0;
  • 30 531 438 766 ÷ 2 = 15 265 719 383 + 0;
  • 15 265 719 383 ÷ 2 = 7 632 859 691 + 1;
  • 7 632 859 691 ÷ 2 = 3 816 429 845 + 1;
  • 3 816 429 845 ÷ 2 = 1 908 214 922 + 1;
  • 1 908 214 922 ÷ 2 = 954 107 461 + 0;
  • 954 107 461 ÷ 2 = 477 053 730 + 1;
  • 477 053 730 ÷ 2 = 238 526 865 + 0;
  • 238 526 865 ÷ 2 = 119 263 432 + 1;
  • 119 263 432 ÷ 2 = 59 631 716 + 0;
  • 59 631 716 ÷ 2 = 29 815 858 + 0;
  • 29 815 858 ÷ 2 = 14 907 929 + 0;
  • 14 907 929 ÷ 2 = 7 453 964 + 1;
  • 7 453 964 ÷ 2 = 3 726 982 + 0;
  • 3 726 982 ÷ 2 = 1 863 491 + 0;
  • 1 863 491 ÷ 2 = 931 745 + 1;
  • 931 745 ÷ 2 = 465 872 + 1;
  • 465 872 ÷ 2 = 232 936 + 0;
  • 232 936 ÷ 2 = 116 468 + 0;
  • 116 468 ÷ 2 = 58 234 + 0;
  • 58 234 ÷ 2 = 29 117 + 0;
  • 29 117 ÷ 2 = 14 558 + 1;
  • 14 558 ÷ 2 = 7 279 + 0;
  • 7 279 ÷ 2 = 3 639 + 1;
  • 3 639 ÷ 2 = 1 819 + 1;
  • 1 819 ÷ 2 = 909 + 1;
  • 909 ÷ 2 = 454 + 1;
  • 454 ÷ 2 = 227 + 0;
  • 227 ÷ 2 = 113 + 1;
  • 113 ÷ 2 = 56 + 1;
  • 56 ÷ 2 = 28 + 0;
  • 28 ÷ 2 = 14 + 0;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 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.

1 100 011 010 001 110 000 000 001 105(10) =


11 1000 1101 1110 1000 0110 0100 0101 0111 0000 1110 0001 1001 0001 1110 1110 1010 0111 1011 0110 0100 0101 0001(2)


3. Normalize the binary representation of the number.

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


1 100 011 010 001 110 000 000 001 105(10) =


11 1000 1101 1110 1000 0110 0100 0101 0111 0000 1110 0001 1001 0001 1110 1110 1010 0111 1011 0110 0100 0101 0001(2) =


11 1000 1101 1110 1000 0110 0100 0101 0111 0000 1110 0001 1001 0001 1110 1110 1010 0111 1011 0110 0100 0101 0001(2) × 20 =


1.1100 0110 1111 0100 0011 0010 0010 1011 1000 0111 0000 1100 1000 1111 0111 0101 0011 1101 1011 0010 0010 1000 1(2) × 289


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


Mantissa (not normalized):
1.1100 0110 1111 0100 0011 0010 0010 1011 1000 0111 0000 1100 1000 1111 0111 0101 0011 1101 1011 0010 0010 1000 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


89 + 2(8-1) - 1 =


(89 + 127)(10) =


216(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;
  • 216 ÷ 2 = 108 + 0;
  • 108 ÷ 2 = 54 + 0;
  • 54 ÷ 2 = 27 + 0;
  • 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) =


216(10) =


1101 1000(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. 110 0011 0111 1010 0001 1001 00 0101 0111 0000 1110 0001 1001 0001 1110 1110 1010 0111 1011 0110 0100 0101 0001 =


110 0011 0111 1010 0001 1001


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 1000


Mantissa (23 bits) =
110 0011 0111 1010 0001 1001


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

0 - 1101 1000 - 110 0011 0111 1010 0001 1001


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