1 099 999 999 999 999 999 999 999 999 492 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 099 999 999 999 999 999 999 999 999 492(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 099 999 999 999 999 999 999 999 999 492(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 099 999 999 999 999 999 999 999 999 492 ÷ 2 = 549 999 999 999 999 999 999 999 999 746 + 0;
  • 549 999 999 999 999 999 999 999 999 746 ÷ 2 = 274 999 999 999 999 999 999 999 999 873 + 0;
  • 274 999 999 999 999 999 999 999 999 873 ÷ 2 = 137 499 999 999 999 999 999 999 999 936 + 1;
  • 137 499 999 999 999 999 999 999 999 936 ÷ 2 = 68 749 999 999 999 999 999 999 999 968 + 0;
  • 68 749 999 999 999 999 999 999 999 968 ÷ 2 = 34 374 999 999 999 999 999 999 999 984 + 0;
  • 34 374 999 999 999 999 999 999 999 984 ÷ 2 = 17 187 499 999 999 999 999 999 999 992 + 0;
  • 17 187 499 999 999 999 999 999 999 992 ÷ 2 = 8 593 749 999 999 999 999 999 999 996 + 0;
  • 8 593 749 999 999 999 999 999 999 996 ÷ 2 = 4 296 874 999 999 999 999 999 999 998 + 0;
  • 4 296 874 999 999 999 999 999 999 998 ÷ 2 = 2 148 437 499 999 999 999 999 999 999 + 0;
  • 2 148 437 499 999 999 999 999 999 999 ÷ 2 = 1 074 218 749 999 999 999 999 999 999 + 1;
  • 1 074 218 749 999 999 999 999 999 999 ÷ 2 = 537 109 374 999 999 999 999 999 999 + 1;
  • 537 109 374 999 999 999 999 999 999 ÷ 2 = 268 554 687 499 999 999 999 999 999 + 1;
  • 268 554 687 499 999 999 999 999 999 ÷ 2 = 134 277 343 749 999 999 999 999 999 + 1;
  • 134 277 343 749 999 999 999 999 999 ÷ 2 = 67 138 671 874 999 999 999 999 999 + 1;
  • 67 138 671 874 999 999 999 999 999 ÷ 2 = 33 569 335 937 499 999 999 999 999 + 1;
  • 33 569 335 937 499 999 999 999 999 ÷ 2 = 16 784 667 968 749 999 999 999 999 + 1;
  • 16 784 667 968 749 999 999 999 999 ÷ 2 = 8 392 333 984 374 999 999 999 999 + 1;
  • 8 392 333 984 374 999 999 999 999 ÷ 2 = 4 196 166 992 187 499 999 999 999 + 1;
  • 4 196 166 992 187 499 999 999 999 ÷ 2 = 2 098 083 496 093 749 999 999 999 + 1;
  • 2 098 083 496 093 749 999 999 999 ÷ 2 = 1 049 041 748 046 874 999 999 999 + 1;
  • 1 049 041 748 046 874 999 999 999 ÷ 2 = 524 520 874 023 437 499 999 999 + 1;
  • 524 520 874 023 437 499 999 999 ÷ 2 = 262 260 437 011 718 749 999 999 + 1;
  • 262 260 437 011 718 749 999 999 ÷ 2 = 131 130 218 505 859 374 999 999 + 1;
  • 131 130 218 505 859 374 999 999 ÷ 2 = 65 565 109 252 929 687 499 999 + 1;
  • 65 565 109 252 929 687 499 999 ÷ 2 = 32 782 554 626 464 843 749 999 + 1;
  • 32 782 554 626 464 843 749 999 ÷ 2 = 16 391 277 313 232 421 874 999 + 1;
  • 16 391 277 313 232 421 874 999 ÷ 2 = 8 195 638 656 616 210 937 499 + 1;
  • 8 195 638 656 616 210 937 499 ÷ 2 = 4 097 819 328 308 105 468 749 + 1;
  • 4 097 819 328 308 105 468 749 ÷ 2 = 2 048 909 664 154 052 734 374 + 1;
  • 2 048 909 664 154 052 734 374 ÷ 2 = 1 024 454 832 077 026 367 187 + 0;
  • 1 024 454 832 077 026 367 187 ÷ 2 = 512 227 416 038 513 183 593 + 1;
  • 512 227 416 038 513 183 593 ÷ 2 = 256 113 708 019 256 591 796 + 1;
  • 256 113 708 019 256 591 796 ÷ 2 = 128 056 854 009 628 295 898 + 0;
  • 128 056 854 009 628 295 898 ÷ 2 = 64 028 427 004 814 147 949 + 0;
  • 64 028 427 004 814 147 949 ÷ 2 = 32 014 213 502 407 073 974 + 1;
  • 32 014 213 502 407 073 974 ÷ 2 = 16 007 106 751 203 536 987 + 0;
  • 16 007 106 751 203 536 987 ÷ 2 = 8 003 553 375 601 768 493 + 1;
  • 8 003 553 375 601 768 493 ÷ 2 = 4 001 776 687 800 884 246 + 1;
  • 4 001 776 687 800 884 246 ÷ 2 = 2 000 888 343 900 442 123 + 0;
  • 2 000 888 343 900 442 123 ÷ 2 = 1 000 444 171 950 221 061 + 1;
  • 1 000 444 171 950 221 061 ÷ 2 = 500 222 085 975 110 530 + 1;
  • 500 222 085 975 110 530 ÷ 2 = 250 111 042 987 555 265 + 0;
  • 250 111 042 987 555 265 ÷ 2 = 125 055 521 493 777 632 + 1;
  • 125 055 521 493 777 632 ÷ 2 = 62 527 760 746 888 816 + 0;
  • 62 527 760 746 888 816 ÷ 2 = 31 263 880 373 444 408 + 0;
  • 31 263 880 373 444 408 ÷ 2 = 15 631 940 186 722 204 + 0;
  • 15 631 940 186 722 204 ÷ 2 = 7 815 970 093 361 102 + 0;
  • 7 815 970 093 361 102 ÷ 2 = 3 907 985 046 680 551 + 0;
  • 3 907 985 046 680 551 ÷ 2 = 1 953 992 523 340 275 + 1;
  • 1 953 992 523 340 275 ÷ 2 = 976 996 261 670 137 + 1;
  • 976 996 261 670 137 ÷ 2 = 488 498 130 835 068 + 1;
  • 488 498 130 835 068 ÷ 2 = 244 249 065 417 534 + 0;
  • 244 249 065 417 534 ÷ 2 = 122 124 532 708 767 + 0;
  • 122 124 532 708 767 ÷ 2 = 61 062 266 354 383 + 1;
  • 61 062 266 354 383 ÷ 2 = 30 531 133 177 191 + 1;
  • 30 531 133 177 191 ÷ 2 = 15 265 566 588 595 + 1;
  • 15 265 566 588 595 ÷ 2 = 7 632 783 294 297 + 1;
  • 7 632 783 294 297 ÷ 2 = 3 816 391 647 148 + 1;
  • 3 816 391 647 148 ÷ 2 = 1 908 195 823 574 + 0;
  • 1 908 195 823 574 ÷ 2 = 954 097 911 787 + 0;
  • 954 097 911 787 ÷ 2 = 477 048 955 893 + 1;
  • 477 048 955 893 ÷ 2 = 238 524 477 946 + 1;
  • 238 524 477 946 ÷ 2 = 119 262 238 973 + 0;
  • 119 262 238 973 ÷ 2 = 59 631 119 486 + 1;
  • 59 631 119 486 ÷ 2 = 29 815 559 743 + 0;
  • 29 815 559 743 ÷ 2 = 14 907 779 871 + 1;
  • 14 907 779 871 ÷ 2 = 7 453 889 935 + 1;
  • 7 453 889 935 ÷ 2 = 3 726 944 967 + 1;
  • 3 726 944 967 ÷ 2 = 1 863 472 483 + 1;
  • 1 863 472 483 ÷ 2 = 931 736 241 + 1;
  • 931 736 241 ÷ 2 = 465 868 120 + 1;
  • 465 868 120 ÷ 2 = 232 934 060 + 0;
  • 232 934 060 ÷ 2 = 116 467 030 + 0;
  • 116 467 030 ÷ 2 = 58 233 515 + 0;
  • 58 233 515 ÷ 2 = 29 116 757 + 1;
  • 29 116 757 ÷ 2 = 14 558 378 + 1;
  • 14 558 378 ÷ 2 = 7 279 189 + 0;
  • 7 279 189 ÷ 2 = 3 639 594 + 1;
  • 3 639 594 ÷ 2 = 1 819 797 + 0;
  • 1 819 797 ÷ 2 = 909 898 + 1;
  • 909 898 ÷ 2 = 454 949 + 0;
  • 454 949 ÷ 2 = 227 474 + 1;
  • 227 474 ÷ 2 = 113 737 + 0;
  • 113 737 ÷ 2 = 56 868 + 1;
  • 56 868 ÷ 2 = 28 434 + 0;
  • 28 434 ÷ 2 = 14 217 + 0;
  • 14 217 ÷ 2 = 7 108 + 1;
  • 7 108 ÷ 2 = 3 554 + 0;
  • 3 554 ÷ 2 = 1 777 + 0;
  • 1 777 ÷ 2 = 888 + 1;
  • 888 ÷ 2 = 444 + 0;
  • 444 ÷ 2 = 222 + 0;
  • 222 ÷ 2 = 111 + 0;
  • 111 ÷ 2 = 55 + 1;
  • 55 ÷ 2 = 27 + 1;
  • 27 ÷ 2 = 13 + 1;
  • 13 ÷ 2 = 6 + 1;
  • 6 ÷ 2 = 3 + 0;
  • 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 099 999 999 999 999 999 999 999 999 492(10) =


1101 1110 0010 0100 1010 1010 1100 0111 1110 1011 0011 1110 0111 0000 0101 1011 0100 1101 1111 1111 1111 1111 1110 0000 0100(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 099 999 999 999 999 999 999 999 999 492(10) =


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


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


1.1011 1100 0100 1001 0101 0101 1000 1111 1101 0110 0111 1100 1110 0000 1011 0110 1001 1011 1111 1111 1111 1111 1100 0000 100(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.1011 1100 0100 1001 0101 0101 1000 1111 1101 0110 0111 1100 1110 0000 1011 0110 1001 1011 1111 1111 1111 1111 1100 0000 100


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. 101 1110 0010 0100 1010 1010 1100 0111 1110 1011 0011 1110 0111 0000 0101 1011 0100 1101 1111 1111 1111 1111 1110 0000 0100 =


101 1110 0010 0100 1010 1010


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) =
101 1110 0010 0100 1010 1010


Decimal number 1 099 999 999 999 999 999 999 999 999 492 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0010 - 101 1110 0010 0100 1010 1010


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