110 000 100 101 000 000 000 000 000 450 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 110 000 100 101 000 000 000 000 000 450(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
110 000 100 101 000 000 000 000 000 450(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;
  • 110 000 100 101 000 000 000 000 000 450 ÷ 2 = 55 000 050 050 500 000 000 000 000 225 + 0;
  • 55 000 050 050 500 000 000 000 000 225 ÷ 2 = 27 500 025 025 250 000 000 000 000 112 + 1;
  • 27 500 025 025 250 000 000 000 000 112 ÷ 2 = 13 750 012 512 625 000 000 000 000 056 + 0;
  • 13 750 012 512 625 000 000 000 000 056 ÷ 2 = 6 875 006 256 312 500 000 000 000 028 + 0;
  • 6 875 006 256 312 500 000 000 000 028 ÷ 2 = 3 437 503 128 156 250 000 000 000 014 + 0;
  • 3 437 503 128 156 250 000 000 000 014 ÷ 2 = 1 718 751 564 078 125 000 000 000 007 + 0;
  • 1 718 751 564 078 125 000 000 000 007 ÷ 2 = 859 375 782 039 062 500 000 000 003 + 1;
  • 859 375 782 039 062 500 000 000 003 ÷ 2 = 429 687 891 019 531 250 000 000 001 + 1;
  • 429 687 891 019 531 250 000 000 001 ÷ 2 = 214 843 945 509 765 625 000 000 000 + 1;
  • 214 843 945 509 765 625 000 000 000 ÷ 2 = 107 421 972 754 882 812 500 000 000 + 0;
  • 107 421 972 754 882 812 500 000 000 ÷ 2 = 53 710 986 377 441 406 250 000 000 + 0;
  • 53 710 986 377 441 406 250 000 000 ÷ 2 = 26 855 493 188 720 703 125 000 000 + 0;
  • 26 855 493 188 720 703 125 000 000 ÷ 2 = 13 427 746 594 360 351 562 500 000 + 0;
  • 13 427 746 594 360 351 562 500 000 ÷ 2 = 6 713 873 297 180 175 781 250 000 + 0;
  • 6 713 873 297 180 175 781 250 000 ÷ 2 = 3 356 936 648 590 087 890 625 000 + 0;
  • 3 356 936 648 590 087 890 625 000 ÷ 2 = 1 678 468 324 295 043 945 312 500 + 0;
  • 1 678 468 324 295 043 945 312 500 ÷ 2 = 839 234 162 147 521 972 656 250 + 0;
  • 839 234 162 147 521 972 656 250 ÷ 2 = 419 617 081 073 760 986 328 125 + 0;
  • 419 617 081 073 760 986 328 125 ÷ 2 = 209 808 540 536 880 493 164 062 + 1;
  • 209 808 540 536 880 493 164 062 ÷ 2 = 104 904 270 268 440 246 582 031 + 0;
  • 104 904 270 268 440 246 582 031 ÷ 2 = 52 452 135 134 220 123 291 015 + 1;
  • 52 452 135 134 220 123 291 015 ÷ 2 = 26 226 067 567 110 061 645 507 + 1;
  • 26 226 067 567 110 061 645 507 ÷ 2 = 13 113 033 783 555 030 822 753 + 1;
  • 13 113 033 783 555 030 822 753 ÷ 2 = 6 556 516 891 777 515 411 376 + 1;
  • 6 556 516 891 777 515 411 376 ÷ 2 = 3 278 258 445 888 757 705 688 + 0;
  • 3 278 258 445 888 757 705 688 ÷ 2 = 1 639 129 222 944 378 852 844 + 0;
  • 1 639 129 222 944 378 852 844 ÷ 2 = 819 564 611 472 189 426 422 + 0;
  • 819 564 611 472 189 426 422 ÷ 2 = 409 782 305 736 094 713 211 + 0;
  • 409 782 305 736 094 713 211 ÷ 2 = 204 891 152 868 047 356 605 + 1;
  • 204 891 152 868 047 356 605 ÷ 2 = 102 445 576 434 023 678 302 + 1;
  • 102 445 576 434 023 678 302 ÷ 2 = 51 222 788 217 011 839 151 + 0;
  • 51 222 788 217 011 839 151 ÷ 2 = 25 611 394 108 505 919 575 + 1;
  • 25 611 394 108 505 919 575 ÷ 2 = 12 805 697 054 252 959 787 + 1;
  • 12 805 697 054 252 959 787 ÷ 2 = 6 402 848 527 126 479 893 + 1;
  • 6 402 848 527 126 479 893 ÷ 2 = 3 201 424 263 563 239 946 + 1;
  • 3 201 424 263 563 239 946 ÷ 2 = 1 600 712 131 781 619 973 + 0;
  • 1 600 712 131 781 619 973 ÷ 2 = 800 356 065 890 809 986 + 1;
  • 800 356 065 890 809 986 ÷ 2 = 400 178 032 945 404 993 + 0;
  • 400 178 032 945 404 993 ÷ 2 = 200 089 016 472 702 496 + 1;
  • 200 089 016 472 702 496 ÷ 2 = 100 044 508 236 351 248 + 0;
  • 100 044 508 236 351 248 ÷ 2 = 50 022 254 118 175 624 + 0;
  • 50 022 254 118 175 624 ÷ 2 = 25 011 127 059 087 812 + 0;
  • 25 011 127 059 087 812 ÷ 2 = 12 505 563 529 543 906 + 0;
  • 12 505 563 529 543 906 ÷ 2 = 6 252 781 764 771 953 + 0;
  • 6 252 781 764 771 953 ÷ 2 = 3 126 390 882 385 976 + 1;
  • 3 126 390 882 385 976 ÷ 2 = 1 563 195 441 192 988 + 0;
  • 1 563 195 441 192 988 ÷ 2 = 781 597 720 596 494 + 0;
  • 781 597 720 596 494 ÷ 2 = 390 798 860 298 247 + 0;
  • 390 798 860 298 247 ÷ 2 = 195 399 430 149 123 + 1;
  • 195 399 430 149 123 ÷ 2 = 97 699 715 074 561 + 1;
  • 97 699 715 074 561 ÷ 2 = 48 849 857 537 280 + 1;
  • 48 849 857 537 280 ÷ 2 = 24 424 928 768 640 + 0;
  • 24 424 928 768 640 ÷ 2 = 12 212 464 384 320 + 0;
  • 12 212 464 384 320 ÷ 2 = 6 106 232 192 160 + 0;
  • 6 106 232 192 160 ÷ 2 = 3 053 116 096 080 + 0;
  • 3 053 116 096 080 ÷ 2 = 1 526 558 048 040 + 0;
  • 1 526 558 048 040 ÷ 2 = 763 279 024 020 + 0;
  • 763 279 024 020 ÷ 2 = 381 639 512 010 + 0;
  • 381 639 512 010 ÷ 2 = 190 819 756 005 + 0;
  • 190 819 756 005 ÷ 2 = 95 409 878 002 + 1;
  • 95 409 878 002 ÷ 2 = 47 704 939 001 + 0;
  • 47 704 939 001 ÷ 2 = 23 852 469 500 + 1;
  • 23 852 469 500 ÷ 2 = 11 926 234 750 + 0;
  • 11 926 234 750 ÷ 2 = 5 963 117 375 + 0;
  • 5 963 117 375 ÷ 2 = 2 981 558 687 + 1;
  • 2 981 558 687 ÷ 2 = 1 490 779 343 + 1;
  • 1 490 779 343 ÷ 2 = 745 389 671 + 1;
  • 745 389 671 ÷ 2 = 372 694 835 + 1;
  • 372 694 835 ÷ 2 = 186 347 417 + 1;
  • 186 347 417 ÷ 2 = 93 173 708 + 1;
  • 93 173 708 ÷ 2 = 46 586 854 + 0;
  • 46 586 854 ÷ 2 = 23 293 427 + 0;
  • 23 293 427 ÷ 2 = 11 646 713 + 1;
  • 11 646 713 ÷ 2 = 5 823 356 + 1;
  • 5 823 356 ÷ 2 = 2 911 678 + 0;
  • 2 911 678 ÷ 2 = 1 455 839 + 0;
  • 1 455 839 ÷ 2 = 727 919 + 1;
  • 727 919 ÷ 2 = 363 959 + 1;
  • 363 959 ÷ 2 = 181 979 + 1;
  • 181 979 ÷ 2 = 90 989 + 1;
  • 90 989 ÷ 2 = 45 494 + 1;
  • 45 494 ÷ 2 = 22 747 + 0;
  • 22 747 ÷ 2 = 11 373 + 1;
  • 11 373 ÷ 2 = 5 686 + 1;
  • 5 686 ÷ 2 = 2 843 + 0;
  • 2 843 ÷ 2 = 1 421 + 1;
  • 1 421 ÷ 2 = 710 + 1;
  • 710 ÷ 2 = 355 + 0;
  • 355 ÷ 2 = 177 + 1;
  • 177 ÷ 2 = 88 + 1;
  • 88 ÷ 2 = 44 + 0;
  • 44 ÷ 2 = 22 + 0;
  • 22 ÷ 2 = 11 + 0;
  • 11 ÷ 2 = 5 + 1;
  • 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.

110 000 100 101 000 000 000 000 000 450(10) =


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


3. Normalize the binary representation of the number.

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


110 000 100 101 000 000 000 000 000 450(10) =


1 0110 0011 0110 1101 1111 0011 0011 1111 0010 1000 0000 0111 0001 0000 0101 0111 1011 0000 1111 0100 0000 0001 1100 0010(2) =


1 0110 0011 0110 1101 1111 0011 0011 1111 0010 1000 0000 0111 0001 0000 0101 0111 1011 0000 1111 0100 0000 0001 1100 0010(2) × 20 =


1.0110 0011 0110 1101 1111 0011 0011 1111 0010 1000 0000 0111 0001 0000 0101 0111 1011 0000 1111 0100 0000 0001 1100 0010(2) × 296


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


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


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


96 + 2(8-1) - 1 =


(96 + 127)(10) =


223(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;
  • 223 ÷ 2 = 111 + 1;
  • 111 ÷ 2 = 55 + 1;
  • 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) =


223(10) =


1101 1111(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. 011 0001 1011 0110 1111 1001 1 0011 1111 0010 1000 0000 0111 0001 0000 0101 0111 1011 0000 1111 0100 0000 0001 1100 0010 =


011 0001 1011 0110 1111 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 1111


Mantissa (23 bits) =
011 0001 1011 0110 1111 1001


Decimal number 110 000 100 101 000 000 000 000 000 450 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1111 - 011 0001 1011 0110 1111 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