9 116 350 000 000 000 000 000 000 000 029 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 9 116 350 000 000 000 000 000 000 000 029(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
9 116 350 000 000 000 000 000 000 000 029(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;
  • 9 116 350 000 000 000 000 000 000 000 029 ÷ 2 = 4 558 175 000 000 000 000 000 000 000 014 + 1;
  • 4 558 175 000 000 000 000 000 000 000 014 ÷ 2 = 2 279 087 500 000 000 000 000 000 000 007 + 0;
  • 2 279 087 500 000 000 000 000 000 000 007 ÷ 2 = 1 139 543 750 000 000 000 000 000 000 003 + 1;
  • 1 139 543 750 000 000 000 000 000 000 003 ÷ 2 = 569 771 875 000 000 000 000 000 000 001 + 1;
  • 569 771 875 000 000 000 000 000 000 001 ÷ 2 = 284 885 937 500 000 000 000 000 000 000 + 1;
  • 284 885 937 500 000 000 000 000 000 000 ÷ 2 = 142 442 968 750 000 000 000 000 000 000 + 0;
  • 142 442 968 750 000 000 000 000 000 000 ÷ 2 = 71 221 484 375 000 000 000 000 000 000 + 0;
  • 71 221 484 375 000 000 000 000 000 000 ÷ 2 = 35 610 742 187 500 000 000 000 000 000 + 0;
  • 35 610 742 187 500 000 000 000 000 000 ÷ 2 = 17 805 371 093 750 000 000 000 000 000 + 0;
  • 17 805 371 093 750 000 000 000 000 000 ÷ 2 = 8 902 685 546 875 000 000 000 000 000 + 0;
  • 8 902 685 546 875 000 000 000 000 000 ÷ 2 = 4 451 342 773 437 500 000 000 000 000 + 0;
  • 4 451 342 773 437 500 000 000 000 000 ÷ 2 = 2 225 671 386 718 750 000 000 000 000 + 0;
  • 2 225 671 386 718 750 000 000 000 000 ÷ 2 = 1 112 835 693 359 375 000 000 000 000 + 0;
  • 1 112 835 693 359 375 000 000 000 000 ÷ 2 = 556 417 846 679 687 500 000 000 000 + 0;
  • 556 417 846 679 687 500 000 000 000 ÷ 2 = 278 208 923 339 843 750 000 000 000 + 0;
  • 278 208 923 339 843 750 000 000 000 ÷ 2 = 139 104 461 669 921 875 000 000 000 + 0;
  • 139 104 461 669 921 875 000 000 000 ÷ 2 = 69 552 230 834 960 937 500 000 000 + 0;
  • 69 552 230 834 960 937 500 000 000 ÷ 2 = 34 776 115 417 480 468 750 000 000 + 0;
  • 34 776 115 417 480 468 750 000 000 ÷ 2 = 17 388 057 708 740 234 375 000 000 + 0;
  • 17 388 057 708 740 234 375 000 000 ÷ 2 = 8 694 028 854 370 117 187 500 000 + 0;
  • 8 694 028 854 370 117 187 500 000 ÷ 2 = 4 347 014 427 185 058 593 750 000 + 0;
  • 4 347 014 427 185 058 593 750 000 ÷ 2 = 2 173 507 213 592 529 296 875 000 + 0;
  • 2 173 507 213 592 529 296 875 000 ÷ 2 = 1 086 753 606 796 264 648 437 500 + 0;
  • 1 086 753 606 796 264 648 437 500 ÷ 2 = 543 376 803 398 132 324 218 750 + 0;
  • 543 376 803 398 132 324 218 750 ÷ 2 = 271 688 401 699 066 162 109 375 + 0;
  • 271 688 401 699 066 162 109 375 ÷ 2 = 135 844 200 849 533 081 054 687 + 1;
  • 135 844 200 849 533 081 054 687 ÷ 2 = 67 922 100 424 766 540 527 343 + 1;
  • 67 922 100 424 766 540 527 343 ÷ 2 = 33 961 050 212 383 270 263 671 + 1;
  • 33 961 050 212 383 270 263 671 ÷ 2 = 16 980 525 106 191 635 131 835 + 1;
  • 16 980 525 106 191 635 131 835 ÷ 2 = 8 490 262 553 095 817 565 917 + 1;
  • 8 490 262 553 095 817 565 917 ÷ 2 = 4 245 131 276 547 908 782 958 + 1;
  • 4 245 131 276 547 908 782 958 ÷ 2 = 2 122 565 638 273 954 391 479 + 0;
  • 2 122 565 638 273 954 391 479 ÷ 2 = 1 061 282 819 136 977 195 739 + 1;
  • 1 061 282 819 136 977 195 739 ÷ 2 = 530 641 409 568 488 597 869 + 1;
  • 530 641 409 568 488 597 869 ÷ 2 = 265 320 704 784 244 298 934 + 1;
  • 265 320 704 784 244 298 934 ÷ 2 = 132 660 352 392 122 149 467 + 0;
  • 132 660 352 392 122 149 467 ÷ 2 = 66 330 176 196 061 074 733 + 1;
  • 66 330 176 196 061 074 733 ÷ 2 = 33 165 088 098 030 537 366 + 1;
  • 33 165 088 098 030 537 366 ÷ 2 = 16 582 544 049 015 268 683 + 0;
  • 16 582 544 049 015 268 683 ÷ 2 = 8 291 272 024 507 634 341 + 1;
  • 8 291 272 024 507 634 341 ÷ 2 = 4 145 636 012 253 817 170 + 1;
  • 4 145 636 012 253 817 170 ÷ 2 = 2 072 818 006 126 908 585 + 0;
  • 2 072 818 006 126 908 585 ÷ 2 = 1 036 409 003 063 454 292 + 1;
  • 1 036 409 003 063 454 292 ÷ 2 = 518 204 501 531 727 146 + 0;
  • 518 204 501 531 727 146 ÷ 2 = 259 102 250 765 863 573 + 0;
  • 259 102 250 765 863 573 ÷ 2 = 129 551 125 382 931 786 + 1;
  • 129 551 125 382 931 786 ÷ 2 = 64 775 562 691 465 893 + 0;
  • 64 775 562 691 465 893 ÷ 2 = 32 387 781 345 732 946 + 1;
  • 32 387 781 345 732 946 ÷ 2 = 16 193 890 672 866 473 + 0;
  • 16 193 890 672 866 473 ÷ 2 = 8 096 945 336 433 236 + 1;
  • 8 096 945 336 433 236 ÷ 2 = 4 048 472 668 216 618 + 0;
  • 4 048 472 668 216 618 ÷ 2 = 2 024 236 334 108 309 + 0;
  • 2 024 236 334 108 309 ÷ 2 = 1 012 118 167 054 154 + 1;
  • 1 012 118 167 054 154 ÷ 2 = 506 059 083 527 077 + 0;
  • 506 059 083 527 077 ÷ 2 = 253 029 541 763 538 + 1;
  • 253 029 541 763 538 ÷ 2 = 126 514 770 881 769 + 0;
  • 126 514 770 881 769 ÷ 2 = 63 257 385 440 884 + 1;
  • 63 257 385 440 884 ÷ 2 = 31 628 692 720 442 + 0;
  • 31 628 692 720 442 ÷ 2 = 15 814 346 360 221 + 0;
  • 15 814 346 360 221 ÷ 2 = 7 907 173 180 110 + 1;
  • 7 907 173 180 110 ÷ 2 = 3 953 586 590 055 + 0;
  • 3 953 586 590 055 ÷ 2 = 1 976 793 295 027 + 1;
  • 1 976 793 295 027 ÷ 2 = 988 396 647 513 + 1;
  • 988 396 647 513 ÷ 2 = 494 198 323 756 + 1;
  • 494 198 323 756 ÷ 2 = 247 099 161 878 + 0;
  • 247 099 161 878 ÷ 2 = 123 549 580 939 + 0;
  • 123 549 580 939 ÷ 2 = 61 774 790 469 + 1;
  • 61 774 790 469 ÷ 2 = 30 887 395 234 + 1;
  • 30 887 395 234 ÷ 2 = 15 443 697 617 + 0;
  • 15 443 697 617 ÷ 2 = 7 721 848 808 + 1;
  • 7 721 848 808 ÷ 2 = 3 860 924 404 + 0;
  • 3 860 924 404 ÷ 2 = 1 930 462 202 + 0;
  • 1 930 462 202 ÷ 2 = 965 231 101 + 0;
  • 965 231 101 ÷ 2 = 482 615 550 + 1;
  • 482 615 550 ÷ 2 = 241 307 775 + 0;
  • 241 307 775 ÷ 2 = 120 653 887 + 1;
  • 120 653 887 ÷ 2 = 60 326 943 + 1;
  • 60 326 943 ÷ 2 = 30 163 471 + 1;
  • 30 163 471 ÷ 2 = 15 081 735 + 1;
  • 15 081 735 ÷ 2 = 7 540 867 + 1;
  • 7 540 867 ÷ 2 = 3 770 433 + 1;
  • 3 770 433 ÷ 2 = 1 885 216 + 1;
  • 1 885 216 ÷ 2 = 942 608 + 0;
  • 942 608 ÷ 2 = 471 304 + 0;
  • 471 304 ÷ 2 = 235 652 + 0;
  • 235 652 ÷ 2 = 117 826 + 0;
  • 117 826 ÷ 2 = 58 913 + 0;
  • 58 913 ÷ 2 = 29 456 + 1;
  • 29 456 ÷ 2 = 14 728 + 0;
  • 14 728 ÷ 2 = 7 364 + 0;
  • 7 364 ÷ 2 = 3 682 + 0;
  • 3 682 ÷ 2 = 1 841 + 0;
  • 1 841 ÷ 2 = 920 + 1;
  • 920 ÷ 2 = 460 + 0;
  • 460 ÷ 2 = 230 + 0;
  • 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;

2. Construct the base 2 representation of the positive number.

Take all the remainders starting from the bottom of the list constructed above.

9 116 350 000 000 000 000 000 000 000 029(10) =


111 0011 0001 0000 1000 0011 1111 1010 0010 1100 1110 1001 0101 0010 1010 0101 1011 0111 0111 1110 0000 0000 0000 0000 0001 1101(2)


3. Normalize the binary representation of the number.

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


9 116 350 000 000 000 000 000 000 000 029(10) =


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


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


1.1100 1100 0100 0010 0000 1111 1110 1000 1011 0011 1010 0101 0100 1010 1001 0110 1101 1101 1111 1000 0000 0000 0000 0000 0111 01(2) × 2102


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


Mantissa (not normalized):
1.1100 1100 0100 0010 0000 1111 1110 1000 1011 0011 1010 0101 0100 1010 1001 0110 1101 1101 1111 1000 0000 0000 0000 0000 0111 01


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


102 + 2(8-1) - 1 =


(102 + 127)(10) =


229(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;
  • 229 ÷ 2 = 114 + 1;
  • 114 ÷ 2 = 57 + 0;
  • 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) =


229(10) =


1110 0101(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 0110 0010 0001 0000 0111 111 1010 0010 1100 1110 1001 0101 0010 1010 0101 1011 0111 0111 1110 0000 0000 0000 0000 0001 1101 =


110 0110 0010 0001 0000 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 0101


Mantissa (23 bits) =
110 0110 0010 0001 0000 0111


Decimal number 9 116 350 000 000 000 000 000 000 000 029 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0101 - 110 0110 0010 0001 0000 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