11 101 000 011 101 110 101 010 001 099 847 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 11 101 000 011 101 110 101 010 001 099 847(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 101 000 011 101 110 101 010 001 099 847(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 101 000 011 101 110 101 010 001 099 847 ÷ 2 = 5 550 500 005 550 555 050 505 000 549 923 + 1;
  • 5 550 500 005 550 555 050 505 000 549 923 ÷ 2 = 2 775 250 002 775 277 525 252 500 274 961 + 1;
  • 2 775 250 002 775 277 525 252 500 274 961 ÷ 2 = 1 387 625 001 387 638 762 626 250 137 480 + 1;
  • 1 387 625 001 387 638 762 626 250 137 480 ÷ 2 = 693 812 500 693 819 381 313 125 068 740 + 0;
  • 693 812 500 693 819 381 313 125 068 740 ÷ 2 = 346 906 250 346 909 690 656 562 534 370 + 0;
  • 346 906 250 346 909 690 656 562 534 370 ÷ 2 = 173 453 125 173 454 845 328 281 267 185 + 0;
  • 173 453 125 173 454 845 328 281 267 185 ÷ 2 = 86 726 562 586 727 422 664 140 633 592 + 1;
  • 86 726 562 586 727 422 664 140 633 592 ÷ 2 = 43 363 281 293 363 711 332 070 316 796 + 0;
  • 43 363 281 293 363 711 332 070 316 796 ÷ 2 = 21 681 640 646 681 855 666 035 158 398 + 0;
  • 21 681 640 646 681 855 666 035 158 398 ÷ 2 = 10 840 820 323 340 927 833 017 579 199 + 0;
  • 10 840 820 323 340 927 833 017 579 199 ÷ 2 = 5 420 410 161 670 463 916 508 789 599 + 1;
  • 5 420 410 161 670 463 916 508 789 599 ÷ 2 = 2 710 205 080 835 231 958 254 394 799 + 1;
  • 2 710 205 080 835 231 958 254 394 799 ÷ 2 = 1 355 102 540 417 615 979 127 197 399 + 1;
  • 1 355 102 540 417 615 979 127 197 399 ÷ 2 = 677 551 270 208 807 989 563 598 699 + 1;
  • 677 551 270 208 807 989 563 598 699 ÷ 2 = 338 775 635 104 403 994 781 799 349 + 1;
  • 338 775 635 104 403 994 781 799 349 ÷ 2 = 169 387 817 552 201 997 390 899 674 + 1;
  • 169 387 817 552 201 997 390 899 674 ÷ 2 = 84 693 908 776 100 998 695 449 837 + 0;
  • 84 693 908 776 100 998 695 449 837 ÷ 2 = 42 346 954 388 050 499 347 724 918 + 1;
  • 42 346 954 388 050 499 347 724 918 ÷ 2 = 21 173 477 194 025 249 673 862 459 + 0;
  • 21 173 477 194 025 249 673 862 459 ÷ 2 = 10 586 738 597 012 624 836 931 229 + 1;
  • 10 586 738 597 012 624 836 931 229 ÷ 2 = 5 293 369 298 506 312 418 465 614 + 1;
  • 5 293 369 298 506 312 418 465 614 ÷ 2 = 2 646 684 649 253 156 209 232 807 + 0;
  • 2 646 684 649 253 156 209 232 807 ÷ 2 = 1 323 342 324 626 578 104 616 403 + 1;
  • 1 323 342 324 626 578 104 616 403 ÷ 2 = 661 671 162 313 289 052 308 201 + 1;
  • 661 671 162 313 289 052 308 201 ÷ 2 = 330 835 581 156 644 526 154 100 + 1;
  • 330 835 581 156 644 526 154 100 ÷ 2 = 165 417 790 578 322 263 077 050 + 0;
  • 165 417 790 578 322 263 077 050 ÷ 2 = 82 708 895 289 161 131 538 525 + 0;
  • 82 708 895 289 161 131 538 525 ÷ 2 = 41 354 447 644 580 565 769 262 + 1;
  • 41 354 447 644 580 565 769 262 ÷ 2 = 20 677 223 822 290 282 884 631 + 0;
  • 20 677 223 822 290 282 884 631 ÷ 2 = 10 338 611 911 145 141 442 315 + 1;
  • 10 338 611 911 145 141 442 315 ÷ 2 = 5 169 305 955 572 570 721 157 + 1;
  • 5 169 305 955 572 570 721 157 ÷ 2 = 2 584 652 977 786 285 360 578 + 1;
  • 2 584 652 977 786 285 360 578 ÷ 2 = 1 292 326 488 893 142 680 289 + 0;
  • 1 292 326 488 893 142 680 289 ÷ 2 = 646 163 244 446 571 340 144 + 1;
  • 646 163 244 446 571 340 144 ÷ 2 = 323 081 622 223 285 670 072 + 0;
  • 323 081 622 223 285 670 072 ÷ 2 = 161 540 811 111 642 835 036 + 0;
  • 161 540 811 111 642 835 036 ÷ 2 = 80 770 405 555 821 417 518 + 0;
  • 80 770 405 555 821 417 518 ÷ 2 = 40 385 202 777 910 708 759 + 0;
  • 40 385 202 777 910 708 759 ÷ 2 = 20 192 601 388 955 354 379 + 1;
  • 20 192 601 388 955 354 379 ÷ 2 = 10 096 300 694 477 677 189 + 1;
  • 10 096 300 694 477 677 189 ÷ 2 = 5 048 150 347 238 838 594 + 1;
  • 5 048 150 347 238 838 594 ÷ 2 = 2 524 075 173 619 419 297 + 0;
  • 2 524 075 173 619 419 297 ÷ 2 = 1 262 037 586 809 709 648 + 1;
  • 1 262 037 586 809 709 648 ÷ 2 = 631 018 793 404 854 824 + 0;
  • 631 018 793 404 854 824 ÷ 2 = 315 509 396 702 427 412 + 0;
  • 315 509 396 702 427 412 ÷ 2 = 157 754 698 351 213 706 + 0;
  • 157 754 698 351 213 706 ÷ 2 = 78 877 349 175 606 853 + 0;
  • 78 877 349 175 606 853 ÷ 2 = 39 438 674 587 803 426 + 1;
  • 39 438 674 587 803 426 ÷ 2 = 19 719 337 293 901 713 + 0;
  • 19 719 337 293 901 713 ÷ 2 = 9 859 668 646 950 856 + 1;
  • 9 859 668 646 950 856 ÷ 2 = 4 929 834 323 475 428 + 0;
  • 4 929 834 323 475 428 ÷ 2 = 2 464 917 161 737 714 + 0;
  • 2 464 917 161 737 714 ÷ 2 = 1 232 458 580 868 857 + 0;
  • 1 232 458 580 868 857 ÷ 2 = 616 229 290 434 428 + 1;
  • 616 229 290 434 428 ÷ 2 = 308 114 645 217 214 + 0;
  • 308 114 645 217 214 ÷ 2 = 154 057 322 608 607 + 0;
  • 154 057 322 608 607 ÷ 2 = 77 028 661 304 303 + 1;
  • 77 028 661 304 303 ÷ 2 = 38 514 330 652 151 + 1;
  • 38 514 330 652 151 ÷ 2 = 19 257 165 326 075 + 1;
  • 19 257 165 326 075 ÷ 2 = 9 628 582 663 037 + 1;
  • 9 628 582 663 037 ÷ 2 = 4 814 291 331 518 + 1;
  • 4 814 291 331 518 ÷ 2 = 2 407 145 665 759 + 0;
  • 2 407 145 665 759 ÷ 2 = 1 203 572 832 879 + 1;
  • 1 203 572 832 879 ÷ 2 = 601 786 416 439 + 1;
  • 601 786 416 439 ÷ 2 = 300 893 208 219 + 1;
  • 300 893 208 219 ÷ 2 = 150 446 604 109 + 1;
  • 150 446 604 109 ÷ 2 = 75 223 302 054 + 1;
  • 75 223 302 054 ÷ 2 = 37 611 651 027 + 0;
  • 37 611 651 027 ÷ 2 = 18 805 825 513 + 1;
  • 18 805 825 513 ÷ 2 = 9 402 912 756 + 1;
  • 9 402 912 756 ÷ 2 = 4 701 456 378 + 0;
  • 4 701 456 378 ÷ 2 = 2 350 728 189 + 0;
  • 2 350 728 189 ÷ 2 = 1 175 364 094 + 1;
  • 1 175 364 094 ÷ 2 = 587 682 047 + 0;
  • 587 682 047 ÷ 2 = 293 841 023 + 1;
  • 293 841 023 ÷ 2 = 146 920 511 + 1;
  • 146 920 511 ÷ 2 = 73 460 255 + 1;
  • 73 460 255 ÷ 2 = 36 730 127 + 1;
  • 36 730 127 ÷ 2 = 18 365 063 + 1;
  • 18 365 063 ÷ 2 = 9 182 531 + 1;
  • 9 182 531 ÷ 2 = 4 591 265 + 1;
  • 4 591 265 ÷ 2 = 2 295 632 + 1;
  • 2 295 632 ÷ 2 = 1 147 816 + 0;
  • 1 147 816 ÷ 2 = 573 908 + 0;
  • 573 908 ÷ 2 = 286 954 + 0;
  • 286 954 ÷ 2 = 143 477 + 0;
  • 143 477 ÷ 2 = 71 738 + 1;
  • 71 738 ÷ 2 = 35 869 + 0;
  • 35 869 ÷ 2 = 17 934 + 1;
  • 17 934 ÷ 2 = 8 967 + 0;
  • 8 967 ÷ 2 = 4 483 + 1;
  • 4 483 ÷ 2 = 2 241 + 1;
  • 2 241 ÷ 2 = 1 120 + 1;
  • 1 120 ÷ 2 = 560 + 0;
  • 560 ÷ 2 = 280 + 0;
  • 280 ÷ 2 = 140 + 0;
  • 140 ÷ 2 = 70 + 0;
  • 70 ÷ 2 = 35 + 0;
  • 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 101 000 011 101 110 101 010 001 099 847(10) =


1000 1100 0001 1101 0100 0011 1111 1101 0011 0111 1101 1111 0010 0010 1000 0101 1100 0010 1110 1001 1101 1010 1111 1100 0100 0111(2)


3. Normalize the binary representation of the number.

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


11 101 000 011 101 110 101 010 001 099 847(10) =


1000 1100 0001 1101 0100 0011 1111 1101 0011 0111 1101 1111 0010 0010 1000 0101 1100 0010 1110 1001 1101 1010 1111 1100 0100 0111(2) =


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


1.0001 1000 0011 1010 1000 0111 1111 1010 0110 1111 1011 1110 0100 0101 0000 1011 1000 0101 1101 0011 1011 0101 1111 1000 1000 111(2) × 2103


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


Mantissa (not normalized):
1.0001 1000 0011 1010 1000 0111 1111 1010 0110 1111 1011 1110 0100 0101 0000 1011 1000 0101 1101 0011 1011 0101 1111 1000 1000 111


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


103 + 2(8-1) - 1 =


(103 + 127)(10) =


230(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;
  • 230 ÷ 2 = 115 + 0;
  • 115 ÷ 2 = 57 + 1;
  • 57 ÷ 2 = 28 + 1;
  • 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) =


230(10) =


1110 0110(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 1100 0001 1101 0100 0011 1111 1101 0011 0111 1101 1111 0010 0010 1000 0101 1100 0010 1110 1001 1101 1010 1111 1100 0100 0111 =


000 1100 0001 1101 0100 0011


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 0110


Mantissa (23 bits) =
000 1100 0001 1101 0100 0011


Decimal number 11 101 000 011 101 110 101 010 001 099 847 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0110 - 000 1100 0001 1101 0100 0011


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