1 100 000 010 100 010 010 000 002 149 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 100 000 010 100 010 010 000 002 149(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 000 010 100 010 010 000 002 149(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 000 010 100 010 010 000 002 149 ÷ 2 = 550 000 005 050 005 005 000 001 074 + 1;
  • 550 000 005 050 005 005 000 001 074 ÷ 2 = 275 000 002 525 002 502 500 000 537 + 0;
  • 275 000 002 525 002 502 500 000 537 ÷ 2 = 137 500 001 262 501 251 250 000 268 + 1;
  • 137 500 001 262 501 251 250 000 268 ÷ 2 = 68 750 000 631 250 625 625 000 134 + 0;
  • 68 750 000 631 250 625 625 000 134 ÷ 2 = 34 375 000 315 625 312 812 500 067 + 0;
  • 34 375 000 315 625 312 812 500 067 ÷ 2 = 17 187 500 157 812 656 406 250 033 + 1;
  • 17 187 500 157 812 656 406 250 033 ÷ 2 = 8 593 750 078 906 328 203 125 016 + 1;
  • 8 593 750 078 906 328 203 125 016 ÷ 2 = 4 296 875 039 453 164 101 562 508 + 0;
  • 4 296 875 039 453 164 101 562 508 ÷ 2 = 2 148 437 519 726 582 050 781 254 + 0;
  • 2 148 437 519 726 582 050 781 254 ÷ 2 = 1 074 218 759 863 291 025 390 627 + 0;
  • 1 074 218 759 863 291 025 390 627 ÷ 2 = 537 109 379 931 645 512 695 313 + 1;
  • 537 109 379 931 645 512 695 313 ÷ 2 = 268 554 689 965 822 756 347 656 + 1;
  • 268 554 689 965 822 756 347 656 ÷ 2 = 134 277 344 982 911 378 173 828 + 0;
  • 134 277 344 982 911 378 173 828 ÷ 2 = 67 138 672 491 455 689 086 914 + 0;
  • 67 138 672 491 455 689 086 914 ÷ 2 = 33 569 336 245 727 844 543 457 + 0;
  • 33 569 336 245 727 844 543 457 ÷ 2 = 16 784 668 122 863 922 271 728 + 1;
  • 16 784 668 122 863 922 271 728 ÷ 2 = 8 392 334 061 431 961 135 864 + 0;
  • 8 392 334 061 431 961 135 864 ÷ 2 = 4 196 167 030 715 980 567 932 + 0;
  • 4 196 167 030 715 980 567 932 ÷ 2 = 2 098 083 515 357 990 283 966 + 0;
  • 2 098 083 515 357 990 283 966 ÷ 2 = 1 049 041 757 678 995 141 983 + 0;
  • 1 049 041 757 678 995 141 983 ÷ 2 = 524 520 878 839 497 570 991 + 1;
  • 524 520 878 839 497 570 991 ÷ 2 = 262 260 439 419 748 785 495 + 1;
  • 262 260 439 419 748 785 495 ÷ 2 = 131 130 219 709 874 392 747 + 1;
  • 131 130 219 709 874 392 747 ÷ 2 = 65 565 109 854 937 196 373 + 1;
  • 65 565 109 854 937 196 373 ÷ 2 = 32 782 554 927 468 598 186 + 1;
  • 32 782 554 927 468 598 186 ÷ 2 = 16 391 277 463 734 299 093 + 0;
  • 16 391 277 463 734 299 093 ÷ 2 = 8 195 638 731 867 149 546 + 1;
  • 8 195 638 731 867 149 546 ÷ 2 = 4 097 819 365 933 574 773 + 0;
  • 4 097 819 365 933 574 773 ÷ 2 = 2 048 909 682 966 787 386 + 1;
  • 2 048 909 682 966 787 386 ÷ 2 = 1 024 454 841 483 393 693 + 0;
  • 1 024 454 841 483 393 693 ÷ 2 = 512 227 420 741 696 846 + 1;
  • 512 227 420 741 696 846 ÷ 2 = 256 113 710 370 848 423 + 0;
  • 256 113 710 370 848 423 ÷ 2 = 128 056 855 185 424 211 + 1;
  • 128 056 855 185 424 211 ÷ 2 = 64 028 427 592 712 105 + 1;
  • 64 028 427 592 712 105 ÷ 2 = 32 014 213 796 356 052 + 1;
  • 32 014 213 796 356 052 ÷ 2 = 16 007 106 898 178 026 + 0;
  • 16 007 106 898 178 026 ÷ 2 = 8 003 553 449 089 013 + 0;
  • 8 003 553 449 089 013 ÷ 2 = 4 001 776 724 544 506 + 1;
  • 4 001 776 724 544 506 ÷ 2 = 2 000 888 362 272 253 + 0;
  • 2 000 888 362 272 253 ÷ 2 = 1 000 444 181 136 126 + 1;
  • 1 000 444 181 136 126 ÷ 2 = 500 222 090 568 063 + 0;
  • 500 222 090 568 063 ÷ 2 = 250 111 045 284 031 + 1;
  • 250 111 045 284 031 ÷ 2 = 125 055 522 642 015 + 1;
  • 125 055 522 642 015 ÷ 2 = 62 527 761 321 007 + 1;
  • 62 527 761 321 007 ÷ 2 = 31 263 880 660 503 + 1;
  • 31 263 880 660 503 ÷ 2 = 15 631 940 330 251 + 1;
  • 15 631 940 330 251 ÷ 2 = 7 815 970 165 125 + 1;
  • 7 815 970 165 125 ÷ 2 = 3 907 985 082 562 + 1;
  • 3 907 985 082 562 ÷ 2 = 1 953 992 541 281 + 0;
  • 1 953 992 541 281 ÷ 2 = 976 996 270 640 + 1;
  • 976 996 270 640 ÷ 2 = 488 498 135 320 + 0;
  • 488 498 135 320 ÷ 2 = 244 249 067 660 + 0;
  • 244 249 067 660 ÷ 2 = 122 124 533 830 + 0;
  • 122 124 533 830 ÷ 2 = 61 062 266 915 + 0;
  • 61 062 266 915 ÷ 2 = 30 531 133 457 + 1;
  • 30 531 133 457 ÷ 2 = 15 265 566 728 + 1;
  • 15 265 566 728 ÷ 2 = 7 632 783 364 + 0;
  • 7 632 783 364 ÷ 2 = 3 816 391 682 + 0;
  • 3 816 391 682 ÷ 2 = 1 908 195 841 + 0;
  • 1 908 195 841 ÷ 2 = 954 097 920 + 1;
  • 954 097 920 ÷ 2 = 477 048 960 + 0;
  • 477 048 960 ÷ 2 = 238 524 480 + 0;
  • 238 524 480 ÷ 2 = 119 262 240 + 0;
  • 119 262 240 ÷ 2 = 59 631 120 + 0;
  • 59 631 120 ÷ 2 = 29 815 560 + 0;
  • 29 815 560 ÷ 2 = 14 907 780 + 0;
  • 14 907 780 ÷ 2 = 7 453 890 + 0;
  • 7 453 890 ÷ 2 = 3 726 945 + 0;
  • 3 726 945 ÷ 2 = 1 863 472 + 1;
  • 1 863 472 ÷ 2 = 931 736 + 0;
  • 931 736 ÷ 2 = 465 868 + 0;
  • 465 868 ÷ 2 = 232 934 + 0;
  • 232 934 ÷ 2 = 116 467 + 0;
  • 116 467 ÷ 2 = 58 233 + 1;
  • 58 233 ÷ 2 = 29 116 + 1;
  • 29 116 ÷ 2 = 14 558 + 0;
  • 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 000 010 100 010 010 000 002 149(10) =


11 1000 1101 1110 0110 0001 0000 0000 1000 1100 0010 1111 1110 1010 0111 0101 0101 1111 0000 1000 1100 0110 0101(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 000 010 100 010 010 000 002 149(10) =


11 1000 1101 1110 0110 0001 0000 0000 1000 1100 0010 1111 1110 1010 0111 0101 0101 1111 0000 1000 1100 0110 0101(2) =


11 1000 1101 1110 0110 0001 0000 0000 1000 1100 0010 1111 1110 1010 0111 0101 0101 1111 0000 1000 1100 0110 0101(2) × 20 =


1.1100 0110 1111 0011 0000 1000 0000 0100 0110 0001 0111 1111 0101 0011 1010 1010 1111 1000 0100 0110 0011 0010 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 0011 0000 1000 0000 0100 0110 0001 0111 1111 0101 0011 1010 1010 1111 1000 0100 0110 0011 0010 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 1001 1000 0100 00 0000 1000 1100 0010 1111 1110 1010 0111 0101 0101 1111 0000 1000 1100 0110 0101 =


110 0011 0111 1001 1000 0100


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 1001 1000 0100


Decimal number 1 100 000 010 100 010 010 000 002 149 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1000 - 110 0011 0111 1001 1000 0100


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