10 000 011 101 110 009 999 999 999 561 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 000 011 101 110 009 999 999 999 561(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
10 000 011 101 110 009 999 999 999 561(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;
  • 10 000 011 101 110 009 999 999 999 561 ÷ 2 = 5 000 005 550 555 004 999 999 999 780 + 1;
  • 5 000 005 550 555 004 999 999 999 780 ÷ 2 = 2 500 002 775 277 502 499 999 999 890 + 0;
  • 2 500 002 775 277 502 499 999 999 890 ÷ 2 = 1 250 001 387 638 751 249 999 999 945 + 0;
  • 1 250 001 387 638 751 249 999 999 945 ÷ 2 = 625 000 693 819 375 624 999 999 972 + 1;
  • 625 000 693 819 375 624 999 999 972 ÷ 2 = 312 500 346 909 687 812 499 999 986 + 0;
  • 312 500 346 909 687 812 499 999 986 ÷ 2 = 156 250 173 454 843 906 249 999 993 + 0;
  • 156 250 173 454 843 906 249 999 993 ÷ 2 = 78 125 086 727 421 953 124 999 996 + 1;
  • 78 125 086 727 421 953 124 999 996 ÷ 2 = 39 062 543 363 710 976 562 499 998 + 0;
  • 39 062 543 363 710 976 562 499 998 ÷ 2 = 19 531 271 681 855 488 281 249 999 + 0;
  • 19 531 271 681 855 488 281 249 999 ÷ 2 = 9 765 635 840 927 744 140 624 999 + 1;
  • 9 765 635 840 927 744 140 624 999 ÷ 2 = 4 882 817 920 463 872 070 312 499 + 1;
  • 4 882 817 920 463 872 070 312 499 ÷ 2 = 2 441 408 960 231 936 035 156 249 + 1;
  • 2 441 408 960 231 936 035 156 249 ÷ 2 = 1 220 704 480 115 968 017 578 124 + 1;
  • 1 220 704 480 115 968 017 578 124 ÷ 2 = 610 352 240 057 984 008 789 062 + 0;
  • 610 352 240 057 984 008 789 062 ÷ 2 = 305 176 120 028 992 004 394 531 + 0;
  • 305 176 120 028 992 004 394 531 ÷ 2 = 152 588 060 014 496 002 197 265 + 1;
  • 152 588 060 014 496 002 197 265 ÷ 2 = 76 294 030 007 248 001 098 632 + 1;
  • 76 294 030 007 248 001 098 632 ÷ 2 = 38 147 015 003 624 000 549 316 + 0;
  • 38 147 015 003 624 000 549 316 ÷ 2 = 19 073 507 501 812 000 274 658 + 0;
  • 19 073 507 501 812 000 274 658 ÷ 2 = 9 536 753 750 906 000 137 329 + 0;
  • 9 536 753 750 906 000 137 329 ÷ 2 = 4 768 376 875 453 000 068 664 + 1;
  • 4 768 376 875 453 000 068 664 ÷ 2 = 2 384 188 437 726 500 034 332 + 0;
  • 2 384 188 437 726 500 034 332 ÷ 2 = 1 192 094 218 863 250 017 166 + 0;
  • 1 192 094 218 863 250 017 166 ÷ 2 = 596 047 109 431 625 008 583 + 0;
  • 596 047 109 431 625 008 583 ÷ 2 = 298 023 554 715 812 504 291 + 1;
  • 298 023 554 715 812 504 291 ÷ 2 = 149 011 777 357 906 252 145 + 1;
  • 149 011 777 357 906 252 145 ÷ 2 = 74 505 888 678 953 126 072 + 1;
  • 74 505 888 678 953 126 072 ÷ 2 = 37 252 944 339 476 563 036 + 0;
  • 37 252 944 339 476 563 036 ÷ 2 = 18 626 472 169 738 281 518 + 0;
  • 18 626 472 169 738 281 518 ÷ 2 = 9 313 236 084 869 140 759 + 0;
  • 9 313 236 084 869 140 759 ÷ 2 = 4 656 618 042 434 570 379 + 1;
  • 4 656 618 042 434 570 379 ÷ 2 = 2 328 309 021 217 285 189 + 1;
  • 2 328 309 021 217 285 189 ÷ 2 = 1 164 154 510 608 642 594 + 1;
  • 1 164 154 510 608 642 594 ÷ 2 = 582 077 255 304 321 297 + 0;
  • 582 077 255 304 321 297 ÷ 2 = 291 038 627 652 160 648 + 1;
  • 291 038 627 652 160 648 ÷ 2 = 145 519 313 826 080 324 + 0;
  • 145 519 313 826 080 324 ÷ 2 = 72 759 656 913 040 162 + 0;
  • 72 759 656 913 040 162 ÷ 2 = 36 379 828 456 520 081 + 0;
  • 36 379 828 456 520 081 ÷ 2 = 18 189 914 228 260 040 + 1;
  • 18 189 914 228 260 040 ÷ 2 = 9 094 957 114 130 020 + 0;
  • 9 094 957 114 130 020 ÷ 2 = 4 547 478 557 065 010 + 0;
  • 4 547 478 557 065 010 ÷ 2 = 2 273 739 278 532 505 + 0;
  • 2 273 739 278 532 505 ÷ 2 = 1 136 869 639 266 252 + 1;
  • 1 136 869 639 266 252 ÷ 2 = 568 434 819 633 126 + 0;
  • 568 434 819 633 126 ÷ 2 = 284 217 409 816 563 + 0;
  • 284 217 409 816 563 ÷ 2 = 142 108 704 908 281 + 1;
  • 142 108 704 908 281 ÷ 2 = 71 054 352 454 140 + 1;
  • 71 054 352 454 140 ÷ 2 = 35 527 176 227 070 + 0;
  • 35 527 176 227 070 ÷ 2 = 17 763 588 113 535 + 0;
  • 17 763 588 113 535 ÷ 2 = 8 881 794 056 767 + 1;
  • 8 881 794 056 767 ÷ 2 = 4 440 897 028 383 + 1;
  • 4 440 897 028 383 ÷ 2 = 2 220 448 514 191 + 1;
  • 2 220 448 514 191 ÷ 2 = 1 110 224 257 095 + 1;
  • 1 110 224 257 095 ÷ 2 = 555 112 128 547 + 1;
  • 555 112 128 547 ÷ 2 = 277 556 064 273 + 1;
  • 277 556 064 273 ÷ 2 = 138 778 032 136 + 1;
  • 138 778 032 136 ÷ 2 = 69 389 016 068 + 0;
  • 69 389 016 068 ÷ 2 = 34 694 508 034 + 0;
  • 34 694 508 034 ÷ 2 = 17 347 254 017 + 0;
  • 17 347 254 017 ÷ 2 = 8 673 627 008 + 1;
  • 8 673 627 008 ÷ 2 = 4 336 813 504 + 0;
  • 4 336 813 504 ÷ 2 = 2 168 406 752 + 0;
  • 2 168 406 752 ÷ 2 = 1 084 203 376 + 0;
  • 1 084 203 376 ÷ 2 = 542 101 688 + 0;
  • 542 101 688 ÷ 2 = 271 050 844 + 0;
  • 271 050 844 ÷ 2 = 135 525 422 + 0;
  • 135 525 422 ÷ 2 = 67 762 711 + 0;
  • 67 762 711 ÷ 2 = 33 881 355 + 1;
  • 33 881 355 ÷ 2 = 16 940 677 + 1;
  • 16 940 677 ÷ 2 = 8 470 338 + 1;
  • 8 470 338 ÷ 2 = 4 235 169 + 0;
  • 4 235 169 ÷ 2 = 2 117 584 + 1;
  • 2 117 584 ÷ 2 = 1 058 792 + 0;
  • 1 058 792 ÷ 2 = 529 396 + 0;
  • 529 396 ÷ 2 = 264 698 + 0;
  • 264 698 ÷ 2 = 132 349 + 0;
  • 132 349 ÷ 2 = 66 174 + 1;
  • 66 174 ÷ 2 = 33 087 + 0;
  • 33 087 ÷ 2 = 16 543 + 1;
  • 16 543 ÷ 2 = 8 271 + 1;
  • 8 271 ÷ 2 = 4 135 + 1;
  • 4 135 ÷ 2 = 2 067 + 1;
  • 2 067 ÷ 2 = 1 033 + 1;
  • 1 033 ÷ 2 = 516 + 1;
  • 516 ÷ 2 = 258 + 0;
  • 258 ÷ 2 = 129 + 0;
  • 129 ÷ 2 = 64 + 1;
  • 64 ÷ 2 = 32 + 0;
  • 32 ÷ 2 = 16 + 0;
  • 16 ÷ 2 = 8 + 0;
  • 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.

10 000 011 101 110 009 999 999 999 561(10) =


10 0000 0100 1111 1101 0000 1011 1000 0000 1000 1111 1110 0110 0100 0100 0101 1100 0111 0001 0001 1001 1110 0100 1001(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:


10 000 011 101 110 009 999 999 999 561(10) =


10 0000 0100 1111 1101 0000 1011 1000 0000 1000 1111 1110 0110 0100 0100 0101 1100 0111 0001 0001 1001 1110 0100 1001(2) =


10 0000 0100 1111 1101 0000 1011 1000 0000 1000 1111 1110 0110 0100 0100 0101 1100 0111 0001 0001 1001 1110 0100 1001(2) × 20 =


1.0000 0010 0111 1110 1000 0101 1100 0000 0100 0111 1111 0011 0010 0010 0010 1110 0011 1000 1000 1100 1111 0010 0100 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.0000 0010 0111 1110 1000 0101 1100 0000 0100 0111 1111 0011 0010 0010 0010 1110 0011 1000 1000 1100 1111 0010 0100 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 0001 0011 1111 0100 0010 11 1000 0000 1000 1111 1110 0110 0100 0100 0101 1100 0111 0001 0001 1001 1110 0100 1001 =


000 0001 0011 1111 0100 0010


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 0001 0011 1111 0100 0010


Decimal number 10 000 011 101 110 009 999 999 999 561 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1100 - 000 0001 0011 1111 0100 0010


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