1 100 000 109 999 999 999 999 999 302 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 100 000 109 999 999 999 999 999 302(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 100 000 109 999 999 999 999 999 302(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 100 000 109 999 999 999 999 999 302 ÷ 2 = 550 000 054 999 999 999 999 999 651 + 0;
  • 550 000 054 999 999 999 999 999 651 ÷ 2 = 275 000 027 499 999 999 999 999 825 + 1;
  • 275 000 027 499 999 999 999 999 825 ÷ 2 = 137 500 013 749 999 999 999 999 912 + 1;
  • 137 500 013 749 999 999 999 999 912 ÷ 2 = 68 750 006 874 999 999 999 999 956 + 0;
  • 68 750 006 874 999 999 999 999 956 ÷ 2 = 34 375 003 437 499 999 999 999 978 + 0;
  • 34 375 003 437 499 999 999 999 978 ÷ 2 = 17 187 501 718 749 999 999 999 989 + 0;
  • 17 187 501 718 749 999 999 999 989 ÷ 2 = 8 593 750 859 374 999 999 999 994 + 1;
  • 8 593 750 859 374 999 999 999 994 ÷ 2 = 4 296 875 429 687 499 999 999 997 + 0;
  • 4 296 875 429 687 499 999 999 997 ÷ 2 = 2 148 437 714 843 749 999 999 998 + 1;
  • 2 148 437 714 843 749 999 999 998 ÷ 2 = 1 074 218 857 421 874 999 999 999 + 0;
  • 1 074 218 857 421 874 999 999 999 ÷ 2 = 537 109 428 710 937 499 999 999 + 1;
  • 537 109 428 710 937 499 999 999 ÷ 2 = 268 554 714 355 468 749 999 999 + 1;
  • 268 554 714 355 468 749 999 999 ÷ 2 = 134 277 357 177 734 374 999 999 + 1;
  • 134 277 357 177 734 374 999 999 ÷ 2 = 67 138 678 588 867 187 499 999 + 1;
  • 67 138 678 588 867 187 499 999 ÷ 2 = 33 569 339 294 433 593 749 999 + 1;
  • 33 569 339 294 433 593 749 999 ÷ 2 = 16 784 669 647 216 796 874 999 + 1;
  • 16 784 669 647 216 796 874 999 ÷ 2 = 8 392 334 823 608 398 437 499 + 1;
  • 8 392 334 823 608 398 437 499 ÷ 2 = 4 196 167 411 804 199 218 749 + 1;
  • 4 196 167 411 804 199 218 749 ÷ 2 = 2 098 083 705 902 099 609 374 + 1;
  • 2 098 083 705 902 099 609 374 ÷ 2 = 1 049 041 852 951 049 804 687 + 0;
  • 1 049 041 852 951 049 804 687 ÷ 2 = 524 520 926 475 524 902 343 + 1;
  • 524 520 926 475 524 902 343 ÷ 2 = 262 260 463 237 762 451 171 + 1;
  • 262 260 463 237 762 451 171 ÷ 2 = 131 130 231 618 881 225 585 + 1;
  • 131 130 231 618 881 225 585 ÷ 2 = 65 565 115 809 440 612 792 + 1;
  • 65 565 115 809 440 612 792 ÷ 2 = 32 782 557 904 720 306 396 + 0;
  • 32 782 557 904 720 306 396 ÷ 2 = 16 391 278 952 360 153 198 + 0;
  • 16 391 278 952 360 153 198 ÷ 2 = 8 195 639 476 180 076 599 + 0;
  • 8 195 639 476 180 076 599 ÷ 2 = 4 097 819 738 090 038 299 + 1;
  • 4 097 819 738 090 038 299 ÷ 2 = 2 048 909 869 045 019 149 + 1;
  • 2 048 909 869 045 019 149 ÷ 2 = 1 024 454 934 522 509 574 + 1;
  • 1 024 454 934 522 509 574 ÷ 2 = 512 227 467 261 254 787 + 0;
  • 512 227 467 261 254 787 ÷ 2 = 256 113 733 630 627 393 + 1;
  • 256 113 733 630 627 393 ÷ 2 = 128 056 866 815 313 696 + 1;
  • 128 056 866 815 313 696 ÷ 2 = 64 028 433 407 656 848 + 0;
  • 64 028 433 407 656 848 ÷ 2 = 32 014 216 703 828 424 + 0;
  • 32 014 216 703 828 424 ÷ 2 = 16 007 108 351 914 212 + 0;
  • 16 007 108 351 914 212 ÷ 2 = 8 003 554 175 957 106 + 0;
  • 8 003 554 175 957 106 ÷ 2 = 4 001 777 087 978 553 + 0;
  • 4 001 777 087 978 553 ÷ 2 = 2 000 888 543 989 276 + 1;
  • 2 000 888 543 989 276 ÷ 2 = 1 000 444 271 994 638 + 0;
  • 1 000 444 271 994 638 ÷ 2 = 500 222 135 997 319 + 0;
  • 500 222 135 997 319 ÷ 2 = 250 111 067 998 659 + 1;
  • 250 111 067 998 659 ÷ 2 = 125 055 533 999 329 + 1;
  • 125 055 533 999 329 ÷ 2 = 62 527 766 999 664 + 1;
  • 62 527 766 999 664 ÷ 2 = 31 263 883 499 832 + 0;
  • 31 263 883 499 832 ÷ 2 = 15 631 941 749 916 + 0;
  • 15 631 941 749 916 ÷ 2 = 7 815 970 874 958 + 0;
  • 7 815 970 874 958 ÷ 2 = 3 907 985 437 479 + 0;
  • 3 907 985 437 479 ÷ 2 = 1 953 992 718 739 + 1;
  • 1 953 992 718 739 ÷ 2 = 976 996 359 369 + 1;
  • 976 996 359 369 ÷ 2 = 488 498 179 684 + 1;
  • 488 498 179 684 ÷ 2 = 244 249 089 842 + 0;
  • 244 249 089 842 ÷ 2 = 122 124 544 921 + 0;
  • 122 124 544 921 ÷ 2 = 61 062 272 460 + 1;
  • 61 062 272 460 ÷ 2 = 30 531 136 230 + 0;
  • 30 531 136 230 ÷ 2 = 15 265 568 115 + 0;
  • 15 265 568 115 ÷ 2 = 7 632 784 057 + 1;
  • 7 632 784 057 ÷ 2 = 3 816 392 028 + 1;
  • 3 816 392 028 ÷ 2 = 1 908 196 014 + 0;
  • 1 908 196 014 ÷ 2 = 954 098 007 + 0;
  • 954 098 007 ÷ 2 = 477 049 003 + 1;
  • 477 049 003 ÷ 2 = 238 524 501 + 1;
  • 238 524 501 ÷ 2 = 119 262 250 + 1;
  • 119 262 250 ÷ 2 = 59 631 125 + 0;
  • 59 631 125 ÷ 2 = 29 815 562 + 1;
  • 29 815 562 ÷ 2 = 14 907 781 + 0;
  • 14 907 781 ÷ 2 = 7 453 890 + 1;
  • 7 453 890 ÷ 2 = 3 726 945 + 0;
  • 3 726 945 ÷ 2 = 1 863 472 + 1;
  • 1 863 472 ÷ 2 = 931 736 + 0;
  • 931 736 ÷ 2 = 465 868 + 0;
  • 465 868 ÷ 2 = 232 934 + 0;
  • 232 934 ÷ 2 = 116 467 + 0;
  • 116 467 ÷ 2 = 58 233 + 1;
  • 58 233 ÷ 2 = 29 116 + 1;
  • 29 116 ÷ 2 = 14 558 + 0;
  • 14 558 ÷ 2 = 7 279 + 0;
  • 7 279 ÷ 2 = 3 639 + 1;
  • 3 639 ÷ 2 = 1 819 + 1;
  • 1 819 ÷ 2 = 909 + 1;
  • 909 ÷ 2 = 454 + 1;
  • 454 ÷ 2 = 227 + 0;
  • 227 ÷ 2 = 113 + 1;
  • 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;

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

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

1 100 000 109 999 999 999 999 999 302(10) =


11 1000 1101 1110 0110 0001 0101 0111 0011 0010 0111 0000 1110 0100 0001 1011 1000 1111 0111 1111 1101 0100 0110(2)


3. Normalize the binary representation of the number.

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


1 100 000 109 999 999 999 999 999 302(10) =


11 1000 1101 1110 0110 0001 0101 0111 0011 0010 0111 0000 1110 0100 0001 1011 1000 1111 0111 1111 1101 0100 0110(2) =


11 1000 1101 1110 0110 0001 0101 0111 0011 0010 0111 0000 1110 0100 0001 1011 1000 1111 0111 1111 1101 0100 0110(2) × 20 =


1.1100 0110 1111 0011 0000 1010 1011 1001 1001 0011 1000 0111 0010 0000 1101 1100 0111 1011 1111 1110 1010 0011 0(2) × 289


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


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


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


89 + 2(8-1) - 1 =


(89 + 127)(10) =


216(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;
  • 216 ÷ 2 = 108 + 0;
  • 108 ÷ 2 = 54 + 0;
  • 54 ÷ 2 = 27 + 0;
  • 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) =


216(10) =


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


110 0011 0111 1001 1000 0101


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 1000


Mantissa (23 bits) =
110 0011 0111 1001 1000 0101


Decimal number 1 100 000 109 999 999 999 999 999 302 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1000 - 110 0011 0111 1001 1000 0101


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