53 687 109 120 000 000 000 000 019 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 53 687 109 120 000 000 000 000 019(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
53 687 109 120 000 000 000 000 019(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;
  • 53 687 109 120 000 000 000 000 019 ÷ 2 = 26 843 554 560 000 000 000 000 009 + 1;
  • 26 843 554 560 000 000 000 000 009 ÷ 2 = 13 421 777 280 000 000 000 000 004 + 1;
  • 13 421 777 280 000 000 000 000 004 ÷ 2 = 6 710 888 640 000 000 000 000 002 + 0;
  • 6 710 888 640 000 000 000 000 002 ÷ 2 = 3 355 444 320 000 000 000 000 001 + 0;
  • 3 355 444 320 000 000 000 000 001 ÷ 2 = 1 677 722 160 000 000 000 000 000 + 1;
  • 1 677 722 160 000 000 000 000 000 ÷ 2 = 838 861 080 000 000 000 000 000 + 0;
  • 838 861 080 000 000 000 000 000 ÷ 2 = 419 430 540 000 000 000 000 000 + 0;
  • 419 430 540 000 000 000 000 000 ÷ 2 = 209 715 270 000 000 000 000 000 + 0;
  • 209 715 270 000 000 000 000 000 ÷ 2 = 104 857 635 000 000 000 000 000 + 0;
  • 104 857 635 000 000 000 000 000 ÷ 2 = 52 428 817 500 000 000 000 000 + 0;
  • 52 428 817 500 000 000 000 000 ÷ 2 = 26 214 408 750 000 000 000 000 + 0;
  • 26 214 408 750 000 000 000 000 ÷ 2 = 13 107 204 375 000 000 000 000 + 0;
  • 13 107 204 375 000 000 000 000 ÷ 2 = 6 553 602 187 500 000 000 000 + 0;
  • 6 553 602 187 500 000 000 000 ÷ 2 = 3 276 801 093 750 000 000 000 + 0;
  • 3 276 801 093 750 000 000 000 ÷ 2 = 1 638 400 546 875 000 000 000 + 0;
  • 1 638 400 546 875 000 000 000 ÷ 2 = 819 200 273 437 500 000 000 + 0;
  • 819 200 273 437 500 000 000 ÷ 2 = 409 600 136 718 750 000 000 + 0;
  • 409 600 136 718 750 000 000 ÷ 2 = 204 800 068 359 375 000 000 + 0;
  • 204 800 068 359 375 000 000 ÷ 2 = 102 400 034 179 687 500 000 + 0;
  • 102 400 034 179 687 500 000 ÷ 2 = 51 200 017 089 843 750 000 + 0;
  • 51 200 017 089 843 750 000 ÷ 2 = 25 600 008 544 921 875 000 + 0;
  • 25 600 008 544 921 875 000 ÷ 2 = 12 800 004 272 460 937 500 + 0;
  • 12 800 004 272 460 937 500 ÷ 2 = 6 400 002 136 230 468 750 + 0;
  • 6 400 002 136 230 468 750 ÷ 2 = 3 200 001 068 115 234 375 + 0;
  • 3 200 001 068 115 234 375 ÷ 2 = 1 600 000 534 057 617 187 + 1;
  • 1 600 000 534 057 617 187 ÷ 2 = 800 000 267 028 808 593 + 1;
  • 800 000 267 028 808 593 ÷ 2 = 400 000 133 514 404 296 + 1;
  • 400 000 133 514 404 296 ÷ 2 = 200 000 066 757 202 148 + 0;
  • 200 000 066 757 202 148 ÷ 2 = 100 000 033 378 601 074 + 0;
  • 100 000 033 378 601 074 ÷ 2 = 50 000 016 689 300 537 + 0;
  • 50 000 016 689 300 537 ÷ 2 = 25 000 008 344 650 268 + 1;
  • 25 000 008 344 650 268 ÷ 2 = 12 500 004 172 325 134 + 0;
  • 12 500 004 172 325 134 ÷ 2 = 6 250 002 086 162 567 + 0;
  • 6 250 002 086 162 567 ÷ 2 = 3 125 001 043 081 283 + 1;
  • 3 125 001 043 081 283 ÷ 2 = 1 562 500 521 540 641 + 1;
  • 1 562 500 521 540 641 ÷ 2 = 781 250 260 770 320 + 1;
  • 781 250 260 770 320 ÷ 2 = 390 625 130 385 160 + 0;
  • 390 625 130 385 160 ÷ 2 = 195 312 565 192 580 + 0;
  • 195 312 565 192 580 ÷ 2 = 97 656 282 596 290 + 0;
  • 97 656 282 596 290 ÷ 2 = 48 828 141 298 145 + 0;
  • 48 828 141 298 145 ÷ 2 = 24 414 070 649 072 + 1;
  • 24 414 070 649 072 ÷ 2 = 12 207 035 324 536 + 0;
  • 12 207 035 324 536 ÷ 2 = 6 103 517 662 268 + 0;
  • 6 103 517 662 268 ÷ 2 = 3 051 758 831 134 + 0;
  • 3 051 758 831 134 ÷ 2 = 1 525 879 415 567 + 0;
  • 1 525 879 415 567 ÷ 2 = 762 939 707 783 + 1;
  • 762 939 707 783 ÷ 2 = 381 469 853 891 + 1;
  • 381 469 853 891 ÷ 2 = 190 734 926 945 + 1;
  • 190 734 926 945 ÷ 2 = 95 367 463 472 + 1;
  • 95 367 463 472 ÷ 2 = 47 683 731 736 + 0;
  • 47 683 731 736 ÷ 2 = 23 841 865 868 + 0;
  • 23 841 865 868 ÷ 2 = 11 920 932 934 + 0;
  • 11 920 932 934 ÷ 2 = 5 960 466 467 + 0;
  • 5 960 466 467 ÷ 2 = 2 980 233 233 + 1;
  • 2 980 233 233 ÷ 2 = 1 490 116 616 + 1;
  • 1 490 116 616 ÷ 2 = 745 058 308 + 0;
  • 745 058 308 ÷ 2 = 372 529 154 + 0;
  • 372 529 154 ÷ 2 = 186 264 577 + 0;
  • 186 264 577 ÷ 2 = 93 132 288 + 1;
  • 93 132 288 ÷ 2 = 46 566 144 + 0;
  • 46 566 144 ÷ 2 = 23 283 072 + 0;
  • 23 283 072 ÷ 2 = 11 641 536 + 0;
  • 11 641 536 ÷ 2 = 5 820 768 + 0;
  • 5 820 768 ÷ 2 = 2 910 384 + 0;
  • 2 910 384 ÷ 2 = 1 455 192 + 0;
  • 1 455 192 ÷ 2 = 727 596 + 0;
  • 727 596 ÷ 2 = 363 798 + 0;
  • 363 798 ÷ 2 = 181 899 + 0;
  • 181 899 ÷ 2 = 90 949 + 1;
  • 90 949 ÷ 2 = 45 474 + 1;
  • 45 474 ÷ 2 = 22 737 + 0;
  • 22 737 ÷ 2 = 11 368 + 1;
  • 11 368 ÷ 2 = 5 684 + 0;
  • 5 684 ÷ 2 = 2 842 + 0;
  • 2 842 ÷ 2 = 1 421 + 0;
  • 1 421 ÷ 2 = 710 + 1;
  • 710 ÷ 2 = 355 + 0;
  • 355 ÷ 2 = 177 + 1;
  • 177 ÷ 2 = 88 + 1;
  • 88 ÷ 2 = 44 + 0;
  • 44 ÷ 2 = 22 + 0;
  • 22 ÷ 2 = 11 + 0;
  • 11 ÷ 2 = 5 + 1;
  • 5 ÷ 2 = 2 + 1;
  • 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.

53 687 109 120 000 000 000 000 019(10) =


10 1100 0110 1000 1011 0000 0000 0100 0110 0001 1110 0001 0000 1110 0100 0111 0000 0000 0000 0000 0001 0011(2)


3. Normalize the binary representation of the number.

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


53 687 109 120 000 000 000 000 019(10) =


10 1100 0110 1000 1011 0000 0000 0100 0110 0001 1110 0001 0000 1110 0100 0111 0000 0000 0000 0000 0001 0011(2) =


10 1100 0110 1000 1011 0000 0000 0100 0110 0001 1110 0001 0000 1110 0100 0111 0000 0000 0000 0000 0001 0011(2) × 20 =


1.0110 0011 0100 0101 1000 0000 0010 0011 0000 1111 0000 1000 0111 0010 0011 1000 0000 0000 0000 0000 1001 1(2) × 285


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


Mantissa (not normalized):
1.0110 0011 0100 0101 1000 0000 0010 0011 0000 1111 0000 1000 0111 0010 0011 1000 0000 0000 0000 0000 1001 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


85 + 2(8-1) - 1 =


(85 + 127)(10) =


212(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;
  • 212 ÷ 2 = 106 + 0;
  • 106 ÷ 2 = 53 + 0;
  • 53 ÷ 2 = 26 + 1;
  • 26 ÷ 2 = 13 + 0;
  • 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) =


212(10) =


1101 0100(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. 011 0001 1010 0010 1100 0000 00 0100 0110 0001 1110 0001 0000 1110 0100 0111 0000 0000 0000 0000 0001 0011 =


011 0001 1010 0010 1100 0000


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 0100


Mantissa (23 bits) =
011 0001 1010 0010 1100 0000


Decimal number 53 687 109 120 000 000 000 000 019 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 0100 - 011 0001 1010 0010 1100 0000

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