1 110 110 011 001 009 999 999 999 998 611 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 110 110 011 001 009 999 999 999 998 611(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 110 110 011 001 009 999 999 999 998 611(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 110 110 011 001 009 999 999 999 998 611 ÷ 2 = 555 055 005 500 504 999 999 999 999 305 + 1;
  • 555 055 005 500 504 999 999 999 999 305 ÷ 2 = 277 527 502 750 252 499 999 999 999 652 + 1;
  • 277 527 502 750 252 499 999 999 999 652 ÷ 2 = 138 763 751 375 126 249 999 999 999 826 + 0;
  • 138 763 751 375 126 249 999 999 999 826 ÷ 2 = 69 381 875 687 563 124 999 999 999 913 + 0;
  • 69 381 875 687 563 124 999 999 999 913 ÷ 2 = 34 690 937 843 781 562 499 999 999 956 + 1;
  • 34 690 937 843 781 562 499 999 999 956 ÷ 2 = 17 345 468 921 890 781 249 999 999 978 + 0;
  • 17 345 468 921 890 781 249 999 999 978 ÷ 2 = 8 672 734 460 945 390 624 999 999 989 + 0;
  • 8 672 734 460 945 390 624 999 999 989 ÷ 2 = 4 336 367 230 472 695 312 499 999 994 + 1;
  • 4 336 367 230 472 695 312 499 999 994 ÷ 2 = 2 168 183 615 236 347 656 249 999 997 + 0;
  • 2 168 183 615 236 347 656 249 999 997 ÷ 2 = 1 084 091 807 618 173 828 124 999 998 + 1;
  • 1 084 091 807 618 173 828 124 999 998 ÷ 2 = 542 045 903 809 086 914 062 499 999 + 0;
  • 542 045 903 809 086 914 062 499 999 ÷ 2 = 271 022 951 904 543 457 031 249 999 + 1;
  • 271 022 951 904 543 457 031 249 999 ÷ 2 = 135 511 475 952 271 728 515 624 999 + 1;
  • 135 511 475 952 271 728 515 624 999 ÷ 2 = 67 755 737 976 135 864 257 812 499 + 1;
  • 67 755 737 976 135 864 257 812 499 ÷ 2 = 33 877 868 988 067 932 128 906 249 + 1;
  • 33 877 868 988 067 932 128 906 249 ÷ 2 = 16 938 934 494 033 966 064 453 124 + 1;
  • 16 938 934 494 033 966 064 453 124 ÷ 2 = 8 469 467 247 016 983 032 226 562 + 0;
  • 8 469 467 247 016 983 032 226 562 ÷ 2 = 4 234 733 623 508 491 516 113 281 + 0;
  • 4 234 733 623 508 491 516 113 281 ÷ 2 = 2 117 366 811 754 245 758 056 640 + 1;
  • 2 117 366 811 754 245 758 056 640 ÷ 2 = 1 058 683 405 877 122 879 028 320 + 0;
  • 1 058 683 405 877 122 879 028 320 ÷ 2 = 529 341 702 938 561 439 514 160 + 0;
  • 529 341 702 938 561 439 514 160 ÷ 2 = 264 670 851 469 280 719 757 080 + 0;
  • 264 670 851 469 280 719 757 080 ÷ 2 = 132 335 425 734 640 359 878 540 + 0;
  • 132 335 425 734 640 359 878 540 ÷ 2 = 66 167 712 867 320 179 939 270 + 0;
  • 66 167 712 867 320 179 939 270 ÷ 2 = 33 083 856 433 660 089 969 635 + 0;
  • 33 083 856 433 660 089 969 635 ÷ 2 = 16 541 928 216 830 044 984 817 + 1;
  • 16 541 928 216 830 044 984 817 ÷ 2 = 8 270 964 108 415 022 492 408 + 1;
  • 8 270 964 108 415 022 492 408 ÷ 2 = 4 135 482 054 207 511 246 204 + 0;
  • 4 135 482 054 207 511 246 204 ÷ 2 = 2 067 741 027 103 755 623 102 + 0;
  • 2 067 741 027 103 755 623 102 ÷ 2 = 1 033 870 513 551 877 811 551 + 0;
  • 1 033 870 513 551 877 811 551 ÷ 2 = 516 935 256 775 938 905 775 + 1;
  • 516 935 256 775 938 905 775 ÷ 2 = 258 467 628 387 969 452 887 + 1;
  • 258 467 628 387 969 452 887 ÷ 2 = 129 233 814 193 984 726 443 + 1;
  • 129 233 814 193 984 726 443 ÷ 2 = 64 616 907 096 992 363 221 + 1;
  • 64 616 907 096 992 363 221 ÷ 2 = 32 308 453 548 496 181 610 + 1;
  • 32 308 453 548 496 181 610 ÷ 2 = 16 154 226 774 248 090 805 + 0;
  • 16 154 226 774 248 090 805 ÷ 2 = 8 077 113 387 124 045 402 + 1;
  • 8 077 113 387 124 045 402 ÷ 2 = 4 038 556 693 562 022 701 + 0;
  • 4 038 556 693 562 022 701 ÷ 2 = 2 019 278 346 781 011 350 + 1;
  • 2 019 278 346 781 011 350 ÷ 2 = 1 009 639 173 390 505 675 + 0;
  • 1 009 639 173 390 505 675 ÷ 2 = 504 819 586 695 252 837 + 1;
  • 504 819 586 695 252 837 ÷ 2 = 252 409 793 347 626 418 + 1;
  • 252 409 793 347 626 418 ÷ 2 = 126 204 896 673 813 209 + 0;
  • 126 204 896 673 813 209 ÷ 2 = 63 102 448 336 906 604 + 1;
  • 63 102 448 336 906 604 ÷ 2 = 31 551 224 168 453 302 + 0;
  • 31 551 224 168 453 302 ÷ 2 = 15 775 612 084 226 651 + 0;
  • 15 775 612 084 226 651 ÷ 2 = 7 887 806 042 113 325 + 1;
  • 7 887 806 042 113 325 ÷ 2 = 3 943 903 021 056 662 + 1;
  • 3 943 903 021 056 662 ÷ 2 = 1 971 951 510 528 331 + 0;
  • 1 971 951 510 528 331 ÷ 2 = 985 975 755 264 165 + 1;
  • 985 975 755 264 165 ÷ 2 = 492 987 877 632 082 + 1;
  • 492 987 877 632 082 ÷ 2 = 246 493 938 816 041 + 0;
  • 246 493 938 816 041 ÷ 2 = 123 246 969 408 020 + 1;
  • 123 246 969 408 020 ÷ 2 = 61 623 484 704 010 + 0;
  • 61 623 484 704 010 ÷ 2 = 30 811 742 352 005 + 0;
  • 30 811 742 352 005 ÷ 2 = 15 405 871 176 002 + 1;
  • 15 405 871 176 002 ÷ 2 = 7 702 935 588 001 + 0;
  • 7 702 935 588 001 ÷ 2 = 3 851 467 794 000 + 1;
  • 3 851 467 794 000 ÷ 2 = 1 925 733 897 000 + 0;
  • 1 925 733 897 000 ÷ 2 = 962 866 948 500 + 0;
  • 962 866 948 500 ÷ 2 = 481 433 474 250 + 0;
  • 481 433 474 250 ÷ 2 = 240 716 737 125 + 0;
  • 240 716 737 125 ÷ 2 = 120 358 368 562 + 1;
  • 120 358 368 562 ÷ 2 = 60 179 184 281 + 0;
  • 60 179 184 281 ÷ 2 = 30 089 592 140 + 1;
  • 30 089 592 140 ÷ 2 = 15 044 796 070 + 0;
  • 15 044 796 070 ÷ 2 = 7 522 398 035 + 0;
  • 7 522 398 035 ÷ 2 = 3 761 199 017 + 1;
  • 3 761 199 017 ÷ 2 = 1 880 599 508 + 1;
  • 1 880 599 508 ÷ 2 = 940 299 754 + 0;
  • 940 299 754 ÷ 2 = 470 149 877 + 0;
  • 470 149 877 ÷ 2 = 235 074 938 + 1;
  • 235 074 938 ÷ 2 = 117 537 469 + 0;
  • 117 537 469 ÷ 2 = 58 768 734 + 1;
  • 58 768 734 ÷ 2 = 29 384 367 + 0;
  • 29 384 367 ÷ 2 = 14 692 183 + 1;
  • 14 692 183 ÷ 2 = 7 346 091 + 1;
  • 7 346 091 ÷ 2 = 3 673 045 + 1;
  • 3 673 045 ÷ 2 = 1 836 522 + 1;
  • 1 836 522 ÷ 2 = 918 261 + 0;
  • 918 261 ÷ 2 = 459 130 + 1;
  • 459 130 ÷ 2 = 229 565 + 0;
  • 229 565 ÷ 2 = 114 782 + 1;
  • 114 782 ÷ 2 = 57 391 + 0;
  • 57 391 ÷ 2 = 28 695 + 1;
  • 28 695 ÷ 2 = 14 347 + 1;
  • 14 347 ÷ 2 = 7 173 + 1;
  • 7 173 ÷ 2 = 3 586 + 1;
  • 3 586 ÷ 2 = 1 793 + 0;
  • 1 793 ÷ 2 = 896 + 1;
  • 896 ÷ 2 = 448 + 0;
  • 448 ÷ 2 = 224 + 0;
  • 224 ÷ 2 = 112 + 0;
  • 112 ÷ 2 = 56 + 0;
  • 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 110 110 011 001 009 999 999 999 998 611(10) =


1110 0000 0010 1111 0101 0111 1010 1001 1001 0100 0010 1001 0110 1100 1011 0101 0111 1100 0110 0000 0100 1111 1010 1001 0011(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 110 110 011 001 009 999 999 999 998 611(10) =


1110 0000 0010 1111 0101 0111 1010 1001 1001 0100 0010 1001 0110 1100 1011 0101 0111 1100 0110 0000 0100 1111 1010 1001 0011(2) =


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


1.1100 0000 0101 1110 1010 1111 0101 0011 0010 1000 0101 0010 1101 1001 0110 1010 1111 1000 1100 0000 1001 1111 0101 0010 011(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.1100 0000 0101 1110 1010 1111 0101 0011 0010 1000 0101 0010 1101 1001 0110 1010 1111 1000 1100 0000 1001 1111 0101 0010 011


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. 110 0000 0010 1111 0101 0111 1010 1001 1001 0100 0010 1001 0110 1100 1011 0101 0111 1100 0110 0000 0100 1111 1010 1001 0011 =


110 0000 0010 1111 0101 0111


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) =
110 0000 0010 1111 0101 0111


Decimal number 1 110 110 011 001 009 999 999 999 998 611 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0010 - 110 0000 0010 1111 0101 0111

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