11 111 099 999 999 999 999 999 999 143 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 11 111 099 999 999 999 999 999 999 143(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
11 111 099 999 999 999 999 999 999 143(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;
  • 11 111 099 999 999 999 999 999 999 143 ÷ 2 = 5 555 549 999 999 999 999 999 999 571 + 1;
  • 5 555 549 999 999 999 999 999 999 571 ÷ 2 = 2 777 774 999 999 999 999 999 999 785 + 1;
  • 2 777 774 999 999 999 999 999 999 785 ÷ 2 = 1 388 887 499 999 999 999 999 999 892 + 1;
  • 1 388 887 499 999 999 999 999 999 892 ÷ 2 = 694 443 749 999 999 999 999 999 946 + 0;
  • 694 443 749 999 999 999 999 999 946 ÷ 2 = 347 221 874 999 999 999 999 999 973 + 0;
  • 347 221 874 999 999 999 999 999 973 ÷ 2 = 173 610 937 499 999 999 999 999 986 + 1;
  • 173 610 937 499 999 999 999 999 986 ÷ 2 = 86 805 468 749 999 999 999 999 993 + 0;
  • 86 805 468 749 999 999 999 999 993 ÷ 2 = 43 402 734 374 999 999 999 999 996 + 1;
  • 43 402 734 374 999 999 999 999 996 ÷ 2 = 21 701 367 187 499 999 999 999 998 + 0;
  • 21 701 367 187 499 999 999 999 998 ÷ 2 = 10 850 683 593 749 999 999 999 999 + 0;
  • 10 850 683 593 749 999 999 999 999 ÷ 2 = 5 425 341 796 874 999 999 999 999 + 1;
  • 5 425 341 796 874 999 999 999 999 ÷ 2 = 2 712 670 898 437 499 999 999 999 + 1;
  • 2 712 670 898 437 499 999 999 999 ÷ 2 = 1 356 335 449 218 749 999 999 999 + 1;
  • 1 356 335 449 218 749 999 999 999 ÷ 2 = 678 167 724 609 374 999 999 999 + 1;
  • 678 167 724 609 374 999 999 999 ÷ 2 = 339 083 862 304 687 499 999 999 + 1;
  • 339 083 862 304 687 499 999 999 ÷ 2 = 169 541 931 152 343 749 999 999 + 1;
  • 169 541 931 152 343 749 999 999 ÷ 2 = 84 770 965 576 171 874 999 999 + 1;
  • 84 770 965 576 171 874 999 999 ÷ 2 = 42 385 482 788 085 937 499 999 + 1;
  • 42 385 482 788 085 937 499 999 ÷ 2 = 21 192 741 394 042 968 749 999 + 1;
  • 21 192 741 394 042 968 749 999 ÷ 2 = 10 596 370 697 021 484 374 999 + 1;
  • 10 596 370 697 021 484 374 999 ÷ 2 = 5 298 185 348 510 742 187 499 + 1;
  • 5 298 185 348 510 742 187 499 ÷ 2 = 2 649 092 674 255 371 093 749 + 1;
  • 2 649 092 674 255 371 093 749 ÷ 2 = 1 324 546 337 127 685 546 874 + 1;
  • 1 324 546 337 127 685 546 874 ÷ 2 = 662 273 168 563 842 773 437 + 0;
  • 662 273 168 563 842 773 437 ÷ 2 = 331 136 584 281 921 386 718 + 1;
  • 331 136 584 281 921 386 718 ÷ 2 = 165 568 292 140 960 693 359 + 0;
  • 165 568 292 140 960 693 359 ÷ 2 = 82 784 146 070 480 346 679 + 1;
  • 82 784 146 070 480 346 679 ÷ 2 = 41 392 073 035 240 173 339 + 1;
  • 41 392 073 035 240 173 339 ÷ 2 = 20 696 036 517 620 086 669 + 1;
  • 20 696 036 517 620 086 669 ÷ 2 = 10 348 018 258 810 043 334 + 1;
  • 10 348 018 258 810 043 334 ÷ 2 = 5 174 009 129 405 021 667 + 0;
  • 5 174 009 129 405 021 667 ÷ 2 = 2 587 004 564 702 510 833 + 1;
  • 2 587 004 564 702 510 833 ÷ 2 = 1 293 502 282 351 255 416 + 1;
  • 1 293 502 282 351 255 416 ÷ 2 = 646 751 141 175 627 708 + 0;
  • 646 751 141 175 627 708 ÷ 2 = 323 375 570 587 813 854 + 0;
  • 323 375 570 587 813 854 ÷ 2 = 161 687 785 293 906 927 + 0;
  • 161 687 785 293 906 927 ÷ 2 = 80 843 892 646 953 463 + 1;
  • 80 843 892 646 953 463 ÷ 2 = 40 421 946 323 476 731 + 1;
  • 40 421 946 323 476 731 ÷ 2 = 20 210 973 161 738 365 + 1;
  • 20 210 973 161 738 365 ÷ 2 = 10 105 486 580 869 182 + 1;
  • 10 105 486 580 869 182 ÷ 2 = 5 052 743 290 434 591 + 0;
  • 5 052 743 290 434 591 ÷ 2 = 2 526 371 645 217 295 + 1;
  • 2 526 371 645 217 295 ÷ 2 = 1 263 185 822 608 647 + 1;
  • 1 263 185 822 608 647 ÷ 2 = 631 592 911 304 323 + 1;
  • 631 592 911 304 323 ÷ 2 = 315 796 455 652 161 + 1;
  • 315 796 455 652 161 ÷ 2 = 157 898 227 826 080 + 1;
  • 157 898 227 826 080 ÷ 2 = 78 949 113 913 040 + 0;
  • 78 949 113 913 040 ÷ 2 = 39 474 556 956 520 + 0;
  • 39 474 556 956 520 ÷ 2 = 19 737 278 478 260 + 0;
  • 19 737 278 478 260 ÷ 2 = 9 868 639 239 130 + 0;
  • 9 868 639 239 130 ÷ 2 = 4 934 319 619 565 + 0;
  • 4 934 319 619 565 ÷ 2 = 2 467 159 809 782 + 1;
  • 2 467 159 809 782 ÷ 2 = 1 233 579 904 891 + 0;
  • 1 233 579 904 891 ÷ 2 = 616 789 952 445 + 1;
  • 616 789 952 445 ÷ 2 = 308 394 976 222 + 1;
  • 308 394 976 222 ÷ 2 = 154 197 488 111 + 0;
  • 154 197 488 111 ÷ 2 = 77 098 744 055 + 1;
  • 77 098 744 055 ÷ 2 = 38 549 372 027 + 1;
  • 38 549 372 027 ÷ 2 = 19 274 686 013 + 1;
  • 19 274 686 013 ÷ 2 = 9 637 343 006 + 1;
  • 9 637 343 006 ÷ 2 = 4 818 671 503 + 0;
  • 4 818 671 503 ÷ 2 = 2 409 335 751 + 1;
  • 2 409 335 751 ÷ 2 = 1 204 667 875 + 1;
  • 1 204 667 875 ÷ 2 = 602 333 937 + 1;
  • 602 333 937 ÷ 2 = 301 166 968 + 1;
  • 301 166 968 ÷ 2 = 150 583 484 + 0;
  • 150 583 484 ÷ 2 = 75 291 742 + 0;
  • 75 291 742 ÷ 2 = 37 645 871 + 0;
  • 37 645 871 ÷ 2 = 18 822 935 + 1;
  • 18 822 935 ÷ 2 = 9 411 467 + 1;
  • 9 411 467 ÷ 2 = 4 705 733 + 1;
  • 4 705 733 ÷ 2 = 2 352 866 + 1;
  • 2 352 866 ÷ 2 = 1 176 433 + 0;
  • 1 176 433 ÷ 2 = 588 216 + 1;
  • 588 216 ÷ 2 = 294 108 + 0;
  • 294 108 ÷ 2 = 147 054 + 0;
  • 147 054 ÷ 2 = 73 527 + 0;
  • 73 527 ÷ 2 = 36 763 + 1;
  • 36 763 ÷ 2 = 18 381 + 1;
  • 18 381 ÷ 2 = 9 190 + 1;
  • 9 190 ÷ 2 = 4 595 + 0;
  • 4 595 ÷ 2 = 2 297 + 1;
  • 2 297 ÷ 2 = 1 148 + 1;
  • 1 148 ÷ 2 = 574 + 0;
  • 574 ÷ 2 = 287 + 0;
  • 287 ÷ 2 = 143 + 1;
  • 143 ÷ 2 = 71 + 1;
  • 71 ÷ 2 = 35 + 1;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 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.

11 111 099 999 999 999 999 999 999 143(10) =


10 0011 1110 0110 1110 0010 1111 0001 1110 1111 0110 1000 0011 1110 1111 0001 1011 1101 0111 1111 1111 1100 1010 0111(2)


3. Normalize the binary representation of the number.

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


11 111 099 999 999 999 999 999 999 143(10) =


10 0011 1110 0110 1110 0010 1111 0001 1110 1111 0110 1000 0011 1110 1111 0001 1011 1101 0111 1111 1111 1100 1010 0111(2) =


10 0011 1110 0110 1110 0010 1111 0001 1110 1111 0110 1000 0011 1110 1111 0001 1011 1101 0111 1111 1111 1100 1010 0111(2) × 20 =


1.0001 1111 0011 0111 0001 0111 1000 1111 0111 1011 0100 0001 1111 0111 1000 1101 1110 1011 1111 1111 1110 0101 0011 1(2) × 293


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


Mantissa (not normalized):
1.0001 1111 0011 0111 0001 0111 1000 1111 0111 1011 0100 0001 1111 0111 1000 1101 1110 1011 1111 1111 1110 0101 0011 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


93 + 2(8-1) - 1 =


(93 + 127)(10) =


220(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;
  • 220 ÷ 2 = 110 + 0;
  • 110 ÷ 2 = 55 + 0;
  • 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) =


220(10) =


1101 1100(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. 000 1111 1001 1011 1000 1011 11 0001 1110 1111 0110 1000 0011 1110 1111 0001 1011 1101 0111 1111 1111 1100 1010 0111 =


000 1111 1001 1011 1000 1011


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 1100


Mantissa (23 bits) =
000 1111 1001 1011 1000 1011


Decimal number 11 111 099 999 999 999 999 999 999 143 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1100 - 000 1111 1001 1011 1000 1011

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