1 100 000 110 010 010 099 999 999 999 466 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 100 000 110 010 010 099 999 999 999 466(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 110 010 010 099 999 999 999 466(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 110 010 010 099 999 999 999 466 ÷ 2 = 550 000 055 005 005 049 999 999 999 733 + 0;
  • 550 000 055 005 005 049 999 999 999 733 ÷ 2 = 275 000 027 502 502 524 999 999 999 866 + 1;
  • 275 000 027 502 502 524 999 999 999 866 ÷ 2 = 137 500 013 751 251 262 499 999 999 933 + 0;
  • 137 500 013 751 251 262 499 999 999 933 ÷ 2 = 68 750 006 875 625 631 249 999 999 966 + 1;
  • 68 750 006 875 625 631 249 999 999 966 ÷ 2 = 34 375 003 437 812 815 624 999 999 983 + 0;
  • 34 375 003 437 812 815 624 999 999 983 ÷ 2 = 17 187 501 718 906 407 812 499 999 991 + 1;
  • 17 187 501 718 906 407 812 499 999 991 ÷ 2 = 8 593 750 859 453 203 906 249 999 995 + 1;
  • 8 593 750 859 453 203 906 249 999 995 ÷ 2 = 4 296 875 429 726 601 953 124 999 997 + 1;
  • 4 296 875 429 726 601 953 124 999 997 ÷ 2 = 2 148 437 714 863 300 976 562 499 998 + 1;
  • 2 148 437 714 863 300 976 562 499 998 ÷ 2 = 1 074 218 857 431 650 488 281 249 999 + 0;
  • 1 074 218 857 431 650 488 281 249 999 ÷ 2 = 537 109 428 715 825 244 140 624 999 + 1;
  • 537 109 428 715 825 244 140 624 999 ÷ 2 = 268 554 714 357 912 622 070 312 499 + 1;
  • 268 554 714 357 912 622 070 312 499 ÷ 2 = 134 277 357 178 956 311 035 156 249 + 1;
  • 134 277 357 178 956 311 035 156 249 ÷ 2 = 67 138 678 589 478 155 517 578 124 + 1;
  • 67 138 678 589 478 155 517 578 124 ÷ 2 = 33 569 339 294 739 077 758 789 062 + 0;
  • 33 569 339 294 739 077 758 789 062 ÷ 2 = 16 784 669 647 369 538 879 394 531 + 0;
  • 16 784 669 647 369 538 879 394 531 ÷ 2 = 8 392 334 823 684 769 439 697 265 + 1;
  • 8 392 334 823 684 769 439 697 265 ÷ 2 = 4 196 167 411 842 384 719 848 632 + 1;
  • 4 196 167 411 842 384 719 848 632 ÷ 2 = 2 098 083 705 921 192 359 924 316 + 0;
  • 2 098 083 705 921 192 359 924 316 ÷ 2 = 1 049 041 852 960 596 179 962 158 + 0;
  • 1 049 041 852 960 596 179 962 158 ÷ 2 = 524 520 926 480 298 089 981 079 + 0;
  • 524 520 926 480 298 089 981 079 ÷ 2 = 262 260 463 240 149 044 990 539 + 1;
  • 262 260 463 240 149 044 990 539 ÷ 2 = 131 130 231 620 074 522 495 269 + 1;
  • 131 130 231 620 074 522 495 269 ÷ 2 = 65 565 115 810 037 261 247 634 + 1;
  • 65 565 115 810 037 261 247 634 ÷ 2 = 32 782 557 905 018 630 623 817 + 0;
  • 32 782 557 905 018 630 623 817 ÷ 2 = 16 391 278 952 509 315 311 908 + 1;
  • 16 391 278 952 509 315 311 908 ÷ 2 = 8 195 639 476 254 657 655 954 + 0;
  • 8 195 639 476 254 657 655 954 ÷ 2 = 4 097 819 738 127 328 827 977 + 0;
  • 4 097 819 738 127 328 827 977 ÷ 2 = 2 048 909 869 063 664 413 988 + 1;
  • 2 048 909 869 063 664 413 988 ÷ 2 = 1 024 454 934 531 832 206 994 + 0;
  • 1 024 454 934 531 832 206 994 ÷ 2 = 512 227 467 265 916 103 497 + 0;
  • 512 227 467 265 916 103 497 ÷ 2 = 256 113 733 632 958 051 748 + 1;
  • 256 113 733 632 958 051 748 ÷ 2 = 128 056 866 816 479 025 874 + 0;
  • 128 056 866 816 479 025 874 ÷ 2 = 64 028 433 408 239 512 937 + 0;
  • 64 028 433 408 239 512 937 ÷ 2 = 32 014 216 704 119 756 468 + 1;
  • 32 014 216 704 119 756 468 ÷ 2 = 16 007 108 352 059 878 234 + 0;
  • 16 007 108 352 059 878 234 ÷ 2 = 8 003 554 176 029 939 117 + 0;
  • 8 003 554 176 029 939 117 ÷ 2 = 4 001 777 088 014 969 558 + 1;
  • 4 001 777 088 014 969 558 ÷ 2 = 2 000 888 544 007 484 779 + 0;
  • 2 000 888 544 007 484 779 ÷ 2 = 1 000 444 272 003 742 389 + 1;
  • 1 000 444 272 003 742 389 ÷ 2 = 500 222 136 001 871 194 + 1;
  • 500 222 136 001 871 194 ÷ 2 = 250 111 068 000 935 597 + 0;
  • 250 111 068 000 935 597 ÷ 2 = 125 055 534 000 467 798 + 1;
  • 125 055 534 000 467 798 ÷ 2 = 62 527 767 000 233 899 + 0;
  • 62 527 767 000 233 899 ÷ 2 = 31 263 883 500 116 949 + 1;
  • 31 263 883 500 116 949 ÷ 2 = 15 631 941 750 058 474 + 1;
  • 15 631 941 750 058 474 ÷ 2 = 7 815 970 875 029 237 + 0;
  • 7 815 970 875 029 237 ÷ 2 = 3 907 985 437 514 618 + 1;
  • 3 907 985 437 514 618 ÷ 2 = 1 953 992 718 757 309 + 0;
  • 1 953 992 718 757 309 ÷ 2 = 976 996 359 378 654 + 1;
  • 976 996 359 378 654 ÷ 2 = 488 498 179 689 327 + 0;
  • 488 498 179 689 327 ÷ 2 = 244 249 089 844 663 + 1;
  • 244 249 089 844 663 ÷ 2 = 122 124 544 922 331 + 1;
  • 122 124 544 922 331 ÷ 2 = 61 062 272 461 165 + 1;
  • 61 062 272 461 165 ÷ 2 = 30 531 136 230 582 + 1;
  • 30 531 136 230 582 ÷ 2 = 15 265 568 115 291 + 0;
  • 15 265 568 115 291 ÷ 2 = 7 632 784 057 645 + 1;
  • 7 632 784 057 645 ÷ 2 = 3 816 392 028 822 + 1;
  • 3 816 392 028 822 ÷ 2 = 1 908 196 014 411 + 0;
  • 1 908 196 014 411 ÷ 2 = 954 098 007 205 + 1;
  • 954 098 007 205 ÷ 2 = 477 049 003 602 + 1;
  • 477 049 003 602 ÷ 2 = 238 524 501 801 + 0;
  • 238 524 501 801 ÷ 2 = 119 262 250 900 + 1;
  • 119 262 250 900 ÷ 2 = 59 631 125 450 + 0;
  • 59 631 125 450 ÷ 2 = 29 815 562 725 + 0;
  • 29 815 562 725 ÷ 2 = 14 907 781 362 + 1;
  • 14 907 781 362 ÷ 2 = 7 453 890 681 + 0;
  • 7 453 890 681 ÷ 2 = 3 726 945 340 + 1;
  • 3 726 945 340 ÷ 2 = 1 863 472 670 + 0;
  • 1 863 472 670 ÷ 2 = 931 736 335 + 0;
  • 931 736 335 ÷ 2 = 465 868 167 + 1;
  • 465 868 167 ÷ 2 = 232 934 083 + 1;
  • 232 934 083 ÷ 2 = 116 467 041 + 1;
  • 116 467 041 ÷ 2 = 58 233 520 + 1;
  • 58 233 520 ÷ 2 = 29 116 760 + 0;
  • 29 116 760 ÷ 2 = 14 558 380 + 0;
  • 14 558 380 ÷ 2 = 7 279 190 + 0;
  • 7 279 190 ÷ 2 = 3 639 595 + 0;
  • 3 639 595 ÷ 2 = 1 819 797 + 1;
  • 1 819 797 ÷ 2 = 909 898 + 1;
  • 909 898 ÷ 2 = 454 949 + 0;
  • 454 949 ÷ 2 = 227 474 + 1;
  • 227 474 ÷ 2 = 113 737 + 0;
  • 113 737 ÷ 2 = 56 868 + 1;
  • 56 868 ÷ 2 = 28 434 + 0;
  • 28 434 ÷ 2 = 14 217 + 0;
  • 14 217 ÷ 2 = 7 108 + 1;
  • 7 108 ÷ 2 = 3 554 + 0;
  • 3 554 ÷ 2 = 1 777 + 0;
  • 1 777 ÷ 2 = 888 + 1;
  • 888 ÷ 2 = 444 + 0;
  • 444 ÷ 2 = 222 + 0;
  • 222 ÷ 2 = 111 + 0;
  • 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;

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 110 010 010 099 999 999 999 466(10) =


1101 1110 0010 0100 1010 1100 0011 1100 1010 0101 1011 0111 1010 1011 0101 1010 0100 1001 0010 1110 0011 0011 1101 1110 1010(2)


3. Normalize the binary representation of the number.

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


1 100 000 110 010 010 099 999 999 999 466(10) =


1101 1110 0010 0100 1010 1100 0011 1100 1010 0101 1011 0111 1010 1011 0101 1010 0100 1001 0010 1110 0011 0011 1101 1110 1010(2) =


1101 1110 0010 0100 1010 1100 0011 1100 1010 0101 1011 0111 1010 1011 0101 1010 0100 1001 0010 1110 0011 0011 1101 1110 1010(2) × 20 =


1.1011 1100 0100 1001 0101 1000 0111 1001 0100 1011 0110 1111 0101 0110 1011 0100 1001 0010 0101 1100 0110 0111 1011 1101 010(2) × 299


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


Mantissa (not normalized):
1.1011 1100 0100 1001 0101 1000 0111 1001 0100 1011 0110 1111 0101 0110 1011 0100 1001 0010 0101 1100 0110 0111 1011 1101 010


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


99 + 2(8-1) - 1 =


(99 + 127)(10) =


226(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;
  • 226 ÷ 2 = 113 + 0;
  • 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;

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


226(10) =


1110 0010(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. 101 1110 0010 0100 1010 1100 0011 1100 1010 0101 1011 0111 1010 1011 0101 1010 0100 1001 0010 1110 0011 0011 1101 1110 1010 =


101 1110 0010 0100 1010 1100


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 0010


Mantissa (23 bits) =
101 1110 0010 0100 1010 1100


Decimal number 1 100 000 110 010 010 099 999 999 999 466 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0010 - 101 1110 0010 0100 1010 1100

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