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

Convert decimal 110 000 011 110 110 000 000 000 000 000 123(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 011 110 110 000 000 000 000 000 123(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 011 110 110 000 000 000 000 000 123 ÷ 2 = 55 000 005 555 055 000 000 000 000 000 061 + 1;
  • 55 000 005 555 055 000 000 000 000 000 061 ÷ 2 = 27 500 002 777 527 500 000 000 000 000 030 + 1;
  • 27 500 002 777 527 500 000 000 000 000 030 ÷ 2 = 13 750 001 388 763 750 000 000 000 000 015 + 0;
  • 13 750 001 388 763 750 000 000 000 000 015 ÷ 2 = 6 875 000 694 381 875 000 000 000 000 007 + 1;
  • 6 875 000 694 381 875 000 000 000 000 007 ÷ 2 = 3 437 500 347 190 937 500 000 000 000 003 + 1;
  • 3 437 500 347 190 937 500 000 000 000 003 ÷ 2 = 1 718 750 173 595 468 750 000 000 000 001 + 1;
  • 1 718 750 173 595 468 750 000 000 000 001 ÷ 2 = 859 375 086 797 734 375 000 000 000 000 + 1;
  • 859 375 086 797 734 375 000 000 000 000 ÷ 2 = 429 687 543 398 867 187 500 000 000 000 + 0;
  • 429 687 543 398 867 187 500 000 000 000 ÷ 2 = 214 843 771 699 433 593 750 000 000 000 + 0;
  • 214 843 771 699 433 593 750 000 000 000 ÷ 2 = 107 421 885 849 716 796 875 000 000 000 + 0;
  • 107 421 885 849 716 796 875 000 000 000 ÷ 2 = 53 710 942 924 858 398 437 500 000 000 + 0;
  • 53 710 942 924 858 398 437 500 000 000 ÷ 2 = 26 855 471 462 429 199 218 750 000 000 + 0;
  • 26 855 471 462 429 199 218 750 000 000 ÷ 2 = 13 427 735 731 214 599 609 375 000 000 + 0;
  • 13 427 735 731 214 599 609 375 000 000 ÷ 2 = 6 713 867 865 607 299 804 687 500 000 + 0;
  • 6 713 867 865 607 299 804 687 500 000 ÷ 2 = 3 356 933 932 803 649 902 343 750 000 + 0;
  • 3 356 933 932 803 649 902 343 750 000 ÷ 2 = 1 678 466 966 401 824 951 171 875 000 + 0;
  • 1 678 466 966 401 824 951 171 875 000 ÷ 2 = 839 233 483 200 912 475 585 937 500 + 0;
  • 839 233 483 200 912 475 585 937 500 ÷ 2 = 419 616 741 600 456 237 792 968 750 + 0;
  • 419 616 741 600 456 237 792 968 750 ÷ 2 = 209 808 370 800 228 118 896 484 375 + 0;
  • 209 808 370 800 228 118 896 484 375 ÷ 2 = 104 904 185 400 114 059 448 242 187 + 1;
  • 104 904 185 400 114 059 448 242 187 ÷ 2 = 52 452 092 700 057 029 724 121 093 + 1;
  • 52 452 092 700 057 029 724 121 093 ÷ 2 = 26 226 046 350 028 514 862 060 546 + 1;
  • 26 226 046 350 028 514 862 060 546 ÷ 2 = 13 113 023 175 014 257 431 030 273 + 0;
  • 13 113 023 175 014 257 431 030 273 ÷ 2 = 6 556 511 587 507 128 715 515 136 + 1;
  • 6 556 511 587 507 128 715 515 136 ÷ 2 = 3 278 255 793 753 564 357 757 568 + 0;
  • 3 278 255 793 753 564 357 757 568 ÷ 2 = 1 639 127 896 876 782 178 878 784 + 0;
  • 1 639 127 896 876 782 178 878 784 ÷ 2 = 819 563 948 438 391 089 439 392 + 0;
  • 819 563 948 438 391 089 439 392 ÷ 2 = 409 781 974 219 195 544 719 696 + 0;
  • 409 781 974 219 195 544 719 696 ÷ 2 = 204 890 987 109 597 772 359 848 + 0;
  • 204 890 987 109 597 772 359 848 ÷ 2 = 102 445 493 554 798 886 179 924 + 0;
  • 102 445 493 554 798 886 179 924 ÷ 2 = 51 222 746 777 399 443 089 962 + 0;
  • 51 222 746 777 399 443 089 962 ÷ 2 = 25 611 373 388 699 721 544 981 + 0;
  • 25 611 373 388 699 721 544 981 ÷ 2 = 12 805 686 694 349 860 772 490 + 1;
  • 12 805 686 694 349 860 772 490 ÷ 2 = 6 402 843 347 174 930 386 245 + 0;
  • 6 402 843 347 174 930 386 245 ÷ 2 = 3 201 421 673 587 465 193 122 + 1;
  • 3 201 421 673 587 465 193 122 ÷ 2 = 1 600 710 836 793 732 596 561 + 0;
  • 1 600 710 836 793 732 596 561 ÷ 2 = 800 355 418 396 866 298 280 + 1;
  • 800 355 418 396 866 298 280 ÷ 2 = 400 177 709 198 433 149 140 + 0;
  • 400 177 709 198 433 149 140 ÷ 2 = 200 088 854 599 216 574 570 + 0;
  • 200 088 854 599 216 574 570 ÷ 2 = 100 044 427 299 608 287 285 + 0;
  • 100 044 427 299 608 287 285 ÷ 2 = 50 022 213 649 804 143 642 + 1;
  • 50 022 213 649 804 143 642 ÷ 2 = 25 011 106 824 902 071 821 + 0;
  • 25 011 106 824 902 071 821 ÷ 2 = 12 505 553 412 451 035 910 + 1;
  • 12 505 553 412 451 035 910 ÷ 2 = 6 252 776 706 225 517 955 + 0;
  • 6 252 776 706 225 517 955 ÷ 2 = 3 126 388 353 112 758 977 + 1;
  • 3 126 388 353 112 758 977 ÷ 2 = 1 563 194 176 556 379 488 + 1;
  • 1 563 194 176 556 379 488 ÷ 2 = 781 597 088 278 189 744 + 0;
  • 781 597 088 278 189 744 ÷ 2 = 390 798 544 139 094 872 + 0;
  • 390 798 544 139 094 872 ÷ 2 = 195 399 272 069 547 436 + 0;
  • 195 399 272 069 547 436 ÷ 2 = 97 699 636 034 773 718 + 0;
  • 97 699 636 034 773 718 ÷ 2 = 48 849 818 017 386 859 + 0;
  • 48 849 818 017 386 859 ÷ 2 = 24 424 909 008 693 429 + 1;
  • 24 424 909 008 693 429 ÷ 2 = 12 212 454 504 346 714 + 1;
  • 12 212 454 504 346 714 ÷ 2 = 6 106 227 252 173 357 + 0;
  • 6 106 227 252 173 357 ÷ 2 = 3 053 113 626 086 678 + 1;
  • 3 053 113 626 086 678 ÷ 2 = 1 526 556 813 043 339 + 0;
  • 1 526 556 813 043 339 ÷ 2 = 763 278 406 521 669 + 1;
  • 763 278 406 521 669 ÷ 2 = 381 639 203 260 834 + 1;
  • 381 639 203 260 834 ÷ 2 = 190 819 601 630 417 + 0;
  • 190 819 601 630 417 ÷ 2 = 95 409 800 815 208 + 1;
  • 95 409 800 815 208 ÷ 2 = 47 704 900 407 604 + 0;
  • 47 704 900 407 604 ÷ 2 = 23 852 450 203 802 + 0;
  • 23 852 450 203 802 ÷ 2 = 11 926 225 101 901 + 0;
  • 11 926 225 101 901 ÷ 2 = 5 963 112 550 950 + 1;
  • 5 963 112 550 950 ÷ 2 = 2 981 556 275 475 + 0;
  • 2 981 556 275 475 ÷ 2 = 1 490 778 137 737 + 1;
  • 1 490 778 137 737 ÷ 2 = 745 389 068 868 + 1;
  • 745 389 068 868 ÷ 2 = 372 694 534 434 + 0;
  • 372 694 534 434 ÷ 2 = 186 347 267 217 + 0;
  • 186 347 267 217 ÷ 2 = 93 173 633 608 + 1;
  • 93 173 633 608 ÷ 2 = 46 586 816 804 + 0;
  • 46 586 816 804 ÷ 2 = 23 293 408 402 + 0;
  • 23 293 408 402 ÷ 2 = 11 646 704 201 + 0;
  • 11 646 704 201 ÷ 2 = 5 823 352 100 + 1;
  • 5 823 352 100 ÷ 2 = 2 911 676 050 + 0;
  • 2 911 676 050 ÷ 2 = 1 455 838 025 + 0;
  • 1 455 838 025 ÷ 2 = 727 919 012 + 1;
  • 727 919 012 ÷ 2 = 363 959 506 + 0;
  • 363 959 506 ÷ 2 = 181 979 753 + 0;
  • 181 979 753 ÷ 2 = 90 989 876 + 1;
  • 90 989 876 ÷ 2 = 45 494 938 + 0;
  • 45 494 938 ÷ 2 = 22 747 469 + 0;
  • 22 747 469 ÷ 2 = 11 373 734 + 1;
  • 11 373 734 ÷ 2 = 5 686 867 + 0;
  • 5 686 867 ÷ 2 = 2 843 433 + 1;
  • 2 843 433 ÷ 2 = 1 421 716 + 1;
  • 1 421 716 ÷ 2 = 710 858 + 0;
  • 710 858 ÷ 2 = 355 429 + 0;
  • 355 429 ÷ 2 = 177 714 + 1;
  • 177 714 ÷ 2 = 88 857 + 0;
  • 88 857 ÷ 2 = 44 428 + 1;
  • 44 428 ÷ 2 = 22 214 + 0;
  • 22 214 ÷ 2 = 11 107 + 0;
  • 11 107 ÷ 2 = 5 553 + 1;
  • 5 553 ÷ 2 = 2 776 + 1;
  • 2 776 ÷ 2 = 1 388 + 0;
  • 1 388 ÷ 2 = 694 + 0;
  • 694 ÷ 2 = 347 + 0;
  • 347 ÷ 2 = 173 + 1;
  • 173 ÷ 2 = 86 + 1;
  • 86 ÷ 2 = 43 + 0;
  • 43 ÷ 2 = 21 + 1;
  • 21 ÷ 2 = 10 + 1;
  • 10 ÷ 2 = 5 + 0;
  • 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 011 110 110 000 000 000 000 000 123(10) =


101 0110 1100 0110 0101 0011 0100 1001 0010 0010 0110 1000 1011 0101 1000 0011 0101 0001 0101 0000 0000 1011 1000 0000 0000 0111 1011(2)


3. Normalize the binary representation of the number.

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


110 000 011 110 110 000 000 000 000 000 123(10) =


101 0110 1100 0110 0101 0011 0100 1001 0010 0010 0110 1000 1011 0101 1000 0011 0101 0001 0101 0000 0000 1011 1000 0000 0000 0111 1011(2) =


101 0110 1100 0110 0101 0011 0100 1001 0010 0010 0110 1000 1011 0101 1000 0011 0101 0001 0101 0000 0000 1011 1000 0000 0000 0111 1011(2) × 20 =


1.0101 1011 0001 1001 0100 1101 0010 0100 1000 1001 1010 0010 1101 0110 0000 1101 0100 0101 0100 0000 0010 1110 0000 0000 0001 1110 11(2) × 2106


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


Mantissa (not normalized):
1.0101 1011 0001 1001 0100 1101 0010 0100 1000 1001 1010 0010 1101 0110 0000 1101 0100 0101 0100 0000 0010 1110 0000 0000 0001 1110 11


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


106 + 2(8-1) - 1 =


(106 + 127)(10) =


233(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;
  • 233 ÷ 2 = 116 + 1;
  • 116 ÷ 2 = 58 + 0;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 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) =


233(10) =


1110 1001(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. 010 1101 1000 1100 1010 0110 100 1001 0010 0010 0110 1000 1011 0101 1000 0011 0101 0001 0101 0000 0000 1011 1000 0000 0000 0111 1011 =


010 1101 1000 1100 1010 0110


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) =
1110 1001


Mantissa (23 bits) =
010 1101 1000 1100 1010 0110


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

0 - 1110 1001 - 010 1101 1000 1100 1010 0110

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