11 111 000 000 000 000 000 001 110 687 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 11 111 000 000 000 000 000 001 110 687(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 111 000 000 000 000 000 001 110 687(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 111 000 000 000 000 000 001 110 687 ÷ 2 = 5 555 500 000 000 000 000 000 555 343 + 1;
  • 5 555 500 000 000 000 000 000 555 343 ÷ 2 = 2 777 750 000 000 000 000 000 277 671 + 1;
  • 2 777 750 000 000 000 000 000 277 671 ÷ 2 = 1 388 875 000 000 000 000 000 138 835 + 1;
  • 1 388 875 000 000 000 000 000 138 835 ÷ 2 = 694 437 500 000 000 000 000 069 417 + 1;
  • 694 437 500 000 000 000 000 069 417 ÷ 2 = 347 218 750 000 000 000 000 034 708 + 1;
  • 347 218 750 000 000 000 000 034 708 ÷ 2 = 173 609 375 000 000 000 000 017 354 + 0;
  • 173 609 375 000 000 000 000 017 354 ÷ 2 = 86 804 687 500 000 000 000 008 677 + 0;
  • 86 804 687 500 000 000 000 008 677 ÷ 2 = 43 402 343 750 000 000 000 004 338 + 1;
  • 43 402 343 750 000 000 000 004 338 ÷ 2 = 21 701 171 875 000 000 000 002 169 + 0;
  • 21 701 171 875 000 000 000 002 169 ÷ 2 = 10 850 585 937 500 000 000 001 084 + 1;
  • 10 850 585 937 500 000 000 001 084 ÷ 2 = 5 425 292 968 750 000 000 000 542 + 0;
  • 5 425 292 968 750 000 000 000 542 ÷ 2 = 2 712 646 484 375 000 000 000 271 + 0;
  • 2 712 646 484 375 000 000 000 271 ÷ 2 = 1 356 323 242 187 500 000 000 135 + 1;
  • 1 356 323 242 187 500 000 000 135 ÷ 2 = 678 161 621 093 750 000 000 067 + 1;
  • 678 161 621 093 750 000 000 067 ÷ 2 = 339 080 810 546 875 000 000 033 + 1;
  • 339 080 810 546 875 000 000 033 ÷ 2 = 169 540 405 273 437 500 000 016 + 1;
  • 169 540 405 273 437 500 000 016 ÷ 2 = 84 770 202 636 718 750 000 008 + 0;
  • 84 770 202 636 718 750 000 008 ÷ 2 = 42 385 101 318 359 375 000 004 + 0;
  • 42 385 101 318 359 375 000 004 ÷ 2 = 21 192 550 659 179 687 500 002 + 0;
  • 21 192 550 659 179 687 500 002 ÷ 2 = 10 596 275 329 589 843 750 001 + 0;
  • 10 596 275 329 589 843 750 001 ÷ 2 = 5 298 137 664 794 921 875 000 + 1;
  • 5 298 137 664 794 921 875 000 ÷ 2 = 2 649 068 832 397 460 937 500 + 0;
  • 2 649 068 832 397 460 937 500 ÷ 2 = 1 324 534 416 198 730 468 750 + 0;
  • 1 324 534 416 198 730 468 750 ÷ 2 = 662 267 208 099 365 234 375 + 0;
  • 662 267 208 099 365 234 375 ÷ 2 = 331 133 604 049 682 617 187 + 1;
  • 331 133 604 049 682 617 187 ÷ 2 = 165 566 802 024 841 308 593 + 1;
  • 165 566 802 024 841 308 593 ÷ 2 = 82 783 401 012 420 654 296 + 1;
  • 82 783 401 012 420 654 296 ÷ 2 = 41 391 700 506 210 327 148 + 0;
  • 41 391 700 506 210 327 148 ÷ 2 = 20 695 850 253 105 163 574 + 0;
  • 20 695 850 253 105 163 574 ÷ 2 = 10 347 925 126 552 581 787 + 0;
  • 10 347 925 126 552 581 787 ÷ 2 = 5 173 962 563 276 290 893 + 1;
  • 5 173 962 563 276 290 893 ÷ 2 = 2 586 981 281 638 145 446 + 1;
  • 2 586 981 281 638 145 446 ÷ 2 = 1 293 490 640 819 072 723 + 0;
  • 1 293 490 640 819 072 723 ÷ 2 = 646 745 320 409 536 361 + 1;
  • 646 745 320 409 536 361 ÷ 2 = 323 372 660 204 768 180 + 1;
  • 323 372 660 204 768 180 ÷ 2 = 161 686 330 102 384 090 + 0;
  • 161 686 330 102 384 090 ÷ 2 = 80 843 165 051 192 045 + 0;
  • 80 843 165 051 192 045 ÷ 2 = 40 421 582 525 596 022 + 1;
  • 40 421 582 525 596 022 ÷ 2 = 20 210 791 262 798 011 + 0;
  • 20 210 791 262 798 011 ÷ 2 = 10 105 395 631 399 005 + 1;
  • 10 105 395 631 399 005 ÷ 2 = 5 052 697 815 699 502 + 1;
  • 5 052 697 815 699 502 ÷ 2 = 2 526 348 907 849 751 + 0;
  • 2 526 348 907 849 751 ÷ 2 = 1 263 174 453 924 875 + 1;
  • 1 263 174 453 924 875 ÷ 2 = 631 587 226 962 437 + 1;
  • 631 587 226 962 437 ÷ 2 = 315 793 613 481 218 + 1;
  • 315 793 613 481 218 ÷ 2 = 157 896 806 740 609 + 0;
  • 157 896 806 740 609 ÷ 2 = 78 948 403 370 304 + 1;
  • 78 948 403 370 304 ÷ 2 = 39 474 201 685 152 + 0;
  • 39 474 201 685 152 ÷ 2 = 19 737 100 842 576 + 0;
  • 19 737 100 842 576 ÷ 2 = 9 868 550 421 288 + 0;
  • 9 868 550 421 288 ÷ 2 = 4 934 275 210 644 + 0;
  • 4 934 275 210 644 ÷ 2 = 2 467 137 605 322 + 0;
  • 2 467 137 605 322 ÷ 2 = 1 233 568 802 661 + 0;
  • 1 233 568 802 661 ÷ 2 = 616 784 401 330 + 1;
  • 616 784 401 330 ÷ 2 = 308 392 200 665 + 0;
  • 308 392 200 665 ÷ 2 = 154 196 100 332 + 1;
  • 154 196 100 332 ÷ 2 = 77 098 050 166 + 0;
  • 77 098 050 166 ÷ 2 = 38 549 025 083 + 0;
  • 38 549 025 083 ÷ 2 = 19 274 512 541 + 1;
  • 19 274 512 541 ÷ 2 = 9 637 256 270 + 1;
  • 9 637 256 270 ÷ 2 = 4 818 628 135 + 0;
  • 4 818 628 135 ÷ 2 = 2 409 314 067 + 1;
  • 2 409 314 067 ÷ 2 = 1 204 657 033 + 1;
  • 1 204 657 033 ÷ 2 = 602 328 516 + 1;
  • 602 328 516 ÷ 2 = 301 164 258 + 0;
  • 301 164 258 ÷ 2 = 150 582 129 + 0;
  • 150 582 129 ÷ 2 = 75 291 064 + 1;
  • 75 291 064 ÷ 2 = 37 645 532 + 0;
  • 37 645 532 ÷ 2 = 18 822 766 + 0;
  • 18 822 766 ÷ 2 = 9 411 383 + 0;
  • 9 411 383 ÷ 2 = 4 705 691 + 1;
  • 4 705 691 ÷ 2 = 2 352 845 + 1;
  • 2 352 845 ÷ 2 = 1 176 422 + 1;
  • 1 176 422 ÷ 2 = 588 211 + 0;
  • 588 211 ÷ 2 = 294 105 + 1;
  • 294 105 ÷ 2 = 147 052 + 1;
  • 147 052 ÷ 2 = 73 526 + 0;
  • 73 526 ÷ 2 = 36 763 + 0;
  • 36 763 ÷ 2 = 18 381 + 1;
  • 18 381 ÷ 2 = 9 190 + 1;
  • 9 190 ÷ 2 = 4 595 + 0;
  • 4 595 ÷ 2 = 2 297 + 1;
  • 2 297 ÷ 2 = 1 148 + 1;
  • 1 148 ÷ 2 = 574 + 0;
  • 574 ÷ 2 = 287 + 0;
  • 287 ÷ 2 = 143 + 1;
  • 143 ÷ 2 = 71 + 1;
  • 71 ÷ 2 = 35 + 1;
  • 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 111 000 000 000 000 000 001 110 687(10) =


10 0011 1110 0110 1100 1101 1100 0100 1110 1100 1010 0000 0101 1101 1010 0110 1100 0111 0001 0000 1111 0010 1001 1111(2)


3. Normalize the binary representation of the number.

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


11 111 000 000 000 000 000 001 110 687(10) =


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


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


1.0001 1111 0011 0110 0110 1110 0010 0111 0110 0101 0000 0010 1110 1101 0011 0110 0011 1000 1000 0111 1001 0100 1111 1(2) × 293


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


Mantissa (not normalized):
1.0001 1111 0011 0110 0110 1110 0010 0111 0110 0101 0000 0010 1110 1101 0011 0110 0011 1000 1000 0111 1001 0100 1111 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


93 + 2(8-1) - 1 =


(93 + 127)(10) =


220(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;
  • 220 ÷ 2 = 110 + 0;
  • 110 ÷ 2 = 55 + 0;
  • 55 ÷ 2 = 27 + 1;
  • 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) =


220(10) =


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


000 1111 1001 1011 0011 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) =
1101 1100


Mantissa (23 bits) =
000 1111 1001 1011 0011 0111


Decimal number 11 111 000 000 000 000 000 001 110 687 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1100 - 000 1111 1001 1011 0011 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