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

Convert decimal 1 000 110 110 111 010 000 000 000 011(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 000 110 110 111 010 000 000 000 011(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 000 110 110 111 010 000 000 000 011 ÷ 2 = 500 055 055 055 505 000 000 000 005 + 1;
  • 500 055 055 055 505 000 000 000 005 ÷ 2 = 250 027 527 527 752 500 000 000 002 + 1;
  • 250 027 527 527 752 500 000 000 002 ÷ 2 = 125 013 763 763 876 250 000 000 001 + 0;
  • 125 013 763 763 876 250 000 000 001 ÷ 2 = 62 506 881 881 938 125 000 000 000 + 1;
  • 62 506 881 881 938 125 000 000 000 ÷ 2 = 31 253 440 940 969 062 500 000 000 + 0;
  • 31 253 440 940 969 062 500 000 000 ÷ 2 = 15 626 720 470 484 531 250 000 000 + 0;
  • 15 626 720 470 484 531 250 000 000 ÷ 2 = 7 813 360 235 242 265 625 000 000 + 0;
  • 7 813 360 235 242 265 625 000 000 ÷ 2 = 3 906 680 117 621 132 812 500 000 + 0;
  • 3 906 680 117 621 132 812 500 000 ÷ 2 = 1 953 340 058 810 566 406 250 000 + 0;
  • 1 953 340 058 810 566 406 250 000 ÷ 2 = 976 670 029 405 283 203 125 000 + 0;
  • 976 670 029 405 283 203 125 000 ÷ 2 = 488 335 014 702 641 601 562 500 + 0;
  • 488 335 014 702 641 601 562 500 ÷ 2 = 244 167 507 351 320 800 781 250 + 0;
  • 244 167 507 351 320 800 781 250 ÷ 2 = 122 083 753 675 660 400 390 625 + 0;
  • 122 083 753 675 660 400 390 625 ÷ 2 = 61 041 876 837 830 200 195 312 + 1;
  • 61 041 876 837 830 200 195 312 ÷ 2 = 30 520 938 418 915 100 097 656 + 0;
  • 30 520 938 418 915 100 097 656 ÷ 2 = 15 260 469 209 457 550 048 828 + 0;
  • 15 260 469 209 457 550 048 828 ÷ 2 = 7 630 234 604 728 775 024 414 + 0;
  • 7 630 234 604 728 775 024 414 ÷ 2 = 3 815 117 302 364 387 512 207 + 0;
  • 3 815 117 302 364 387 512 207 ÷ 2 = 1 907 558 651 182 193 756 103 + 1;
  • 1 907 558 651 182 193 756 103 ÷ 2 = 953 779 325 591 096 878 051 + 1;
  • 953 779 325 591 096 878 051 ÷ 2 = 476 889 662 795 548 439 025 + 1;
  • 476 889 662 795 548 439 025 ÷ 2 = 238 444 831 397 774 219 512 + 1;
  • 238 444 831 397 774 219 512 ÷ 2 = 119 222 415 698 887 109 756 + 0;
  • 119 222 415 698 887 109 756 ÷ 2 = 59 611 207 849 443 554 878 + 0;
  • 59 611 207 849 443 554 878 ÷ 2 = 29 805 603 924 721 777 439 + 0;
  • 29 805 603 924 721 777 439 ÷ 2 = 14 902 801 962 360 888 719 + 1;
  • 14 902 801 962 360 888 719 ÷ 2 = 7 451 400 981 180 444 359 + 1;
  • 7 451 400 981 180 444 359 ÷ 2 = 3 725 700 490 590 222 179 + 1;
  • 3 725 700 490 590 222 179 ÷ 2 = 1 862 850 245 295 111 089 + 1;
  • 1 862 850 245 295 111 089 ÷ 2 = 931 425 122 647 555 544 + 1;
  • 931 425 122 647 555 544 ÷ 2 = 465 712 561 323 777 772 + 0;
  • 465 712 561 323 777 772 ÷ 2 = 232 856 280 661 888 886 + 0;
  • 232 856 280 661 888 886 ÷ 2 = 116 428 140 330 944 443 + 0;
  • 116 428 140 330 944 443 ÷ 2 = 58 214 070 165 472 221 + 1;
  • 58 214 070 165 472 221 ÷ 2 = 29 107 035 082 736 110 + 1;
  • 29 107 035 082 736 110 ÷ 2 = 14 553 517 541 368 055 + 0;
  • 14 553 517 541 368 055 ÷ 2 = 7 276 758 770 684 027 + 1;
  • 7 276 758 770 684 027 ÷ 2 = 3 638 379 385 342 013 + 1;
  • 3 638 379 385 342 013 ÷ 2 = 1 819 189 692 671 006 + 1;
  • 1 819 189 692 671 006 ÷ 2 = 909 594 846 335 503 + 0;
  • 909 594 846 335 503 ÷ 2 = 454 797 423 167 751 + 1;
  • 454 797 423 167 751 ÷ 2 = 227 398 711 583 875 + 1;
  • 227 398 711 583 875 ÷ 2 = 113 699 355 791 937 + 1;
  • 113 699 355 791 937 ÷ 2 = 56 849 677 895 968 + 1;
  • 56 849 677 895 968 ÷ 2 = 28 424 838 947 984 + 0;
  • 28 424 838 947 984 ÷ 2 = 14 212 419 473 992 + 0;
  • 14 212 419 473 992 ÷ 2 = 7 106 209 736 996 + 0;
  • 7 106 209 736 996 ÷ 2 = 3 553 104 868 498 + 0;
  • 3 553 104 868 498 ÷ 2 = 1 776 552 434 249 + 0;
  • 1 776 552 434 249 ÷ 2 = 888 276 217 124 + 1;
  • 888 276 217 124 ÷ 2 = 444 138 108 562 + 0;
  • 444 138 108 562 ÷ 2 = 222 069 054 281 + 0;
  • 222 069 054 281 ÷ 2 = 111 034 527 140 + 1;
  • 111 034 527 140 ÷ 2 = 55 517 263 570 + 0;
  • 55 517 263 570 ÷ 2 = 27 758 631 785 + 0;
  • 27 758 631 785 ÷ 2 = 13 879 315 892 + 1;
  • 13 879 315 892 ÷ 2 = 6 939 657 946 + 0;
  • 6 939 657 946 ÷ 2 = 3 469 828 973 + 0;
  • 3 469 828 973 ÷ 2 = 1 734 914 486 + 1;
  • 1 734 914 486 ÷ 2 = 867 457 243 + 0;
  • 867 457 243 ÷ 2 = 433 728 621 + 1;
  • 433 728 621 ÷ 2 = 216 864 310 + 1;
  • 216 864 310 ÷ 2 = 108 432 155 + 0;
  • 108 432 155 ÷ 2 = 54 216 077 + 1;
  • 54 216 077 ÷ 2 = 27 108 038 + 1;
  • 27 108 038 ÷ 2 = 13 554 019 + 0;
  • 13 554 019 ÷ 2 = 6 777 009 + 1;
  • 6 777 009 ÷ 2 = 3 388 504 + 1;
  • 3 388 504 ÷ 2 = 1 694 252 + 0;
  • 1 694 252 ÷ 2 = 847 126 + 0;
  • 847 126 ÷ 2 = 423 563 + 0;
  • 423 563 ÷ 2 = 211 781 + 1;
  • 211 781 ÷ 2 = 105 890 + 1;
  • 105 890 ÷ 2 = 52 945 + 0;
  • 52 945 ÷ 2 = 26 472 + 1;
  • 26 472 ÷ 2 = 13 236 + 0;
  • 13 236 ÷ 2 = 6 618 + 0;
  • 6 618 ÷ 2 = 3 309 + 0;
  • 3 309 ÷ 2 = 1 654 + 1;
  • 1 654 ÷ 2 = 827 + 0;
  • 827 ÷ 2 = 413 + 1;
  • 413 ÷ 2 = 206 + 1;
  • 206 ÷ 2 = 103 + 0;
  • 103 ÷ 2 = 51 + 1;
  • 51 ÷ 2 = 25 + 1;
  • 25 ÷ 2 = 12 + 1;
  • 12 ÷ 2 = 6 + 0;
  • 6 ÷ 2 = 3 + 0;
  • 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 000 110 110 111 010 000 000 000 011(10) =


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


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


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


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


100 1110 1101 0001 0110 0011


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) =
100 1110 1101 0001 0110 0011


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

0 - 1101 1000 - 100 1110 1101 0001 0110 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