110 111 111 111 100 101 110 111 109 025 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 110 111 111 111 100 101 110 111 109 025(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
110 111 111 111 100 101 110 111 109 025(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;
  • 110 111 111 111 100 101 110 111 109 025 ÷ 2 = 55 055 555 555 550 050 555 055 554 512 + 1;
  • 55 055 555 555 550 050 555 055 554 512 ÷ 2 = 27 527 777 777 775 025 277 527 777 256 + 0;
  • 27 527 777 777 775 025 277 527 777 256 ÷ 2 = 13 763 888 888 887 512 638 763 888 628 + 0;
  • 13 763 888 888 887 512 638 763 888 628 ÷ 2 = 6 881 944 444 443 756 319 381 944 314 + 0;
  • 6 881 944 444 443 756 319 381 944 314 ÷ 2 = 3 440 972 222 221 878 159 690 972 157 + 0;
  • 3 440 972 222 221 878 159 690 972 157 ÷ 2 = 1 720 486 111 110 939 079 845 486 078 + 1;
  • 1 720 486 111 110 939 079 845 486 078 ÷ 2 = 860 243 055 555 469 539 922 743 039 + 0;
  • 860 243 055 555 469 539 922 743 039 ÷ 2 = 430 121 527 777 734 769 961 371 519 + 1;
  • 430 121 527 777 734 769 961 371 519 ÷ 2 = 215 060 763 888 867 384 980 685 759 + 1;
  • 215 060 763 888 867 384 980 685 759 ÷ 2 = 107 530 381 944 433 692 490 342 879 + 1;
  • 107 530 381 944 433 692 490 342 879 ÷ 2 = 53 765 190 972 216 846 245 171 439 + 1;
  • 53 765 190 972 216 846 245 171 439 ÷ 2 = 26 882 595 486 108 423 122 585 719 + 1;
  • 26 882 595 486 108 423 122 585 719 ÷ 2 = 13 441 297 743 054 211 561 292 859 + 1;
  • 13 441 297 743 054 211 561 292 859 ÷ 2 = 6 720 648 871 527 105 780 646 429 + 1;
  • 6 720 648 871 527 105 780 646 429 ÷ 2 = 3 360 324 435 763 552 890 323 214 + 1;
  • 3 360 324 435 763 552 890 323 214 ÷ 2 = 1 680 162 217 881 776 445 161 607 + 0;
  • 1 680 162 217 881 776 445 161 607 ÷ 2 = 840 081 108 940 888 222 580 803 + 1;
  • 840 081 108 940 888 222 580 803 ÷ 2 = 420 040 554 470 444 111 290 401 + 1;
  • 420 040 554 470 444 111 290 401 ÷ 2 = 210 020 277 235 222 055 645 200 + 1;
  • 210 020 277 235 222 055 645 200 ÷ 2 = 105 010 138 617 611 027 822 600 + 0;
  • 105 010 138 617 611 027 822 600 ÷ 2 = 52 505 069 308 805 513 911 300 + 0;
  • 52 505 069 308 805 513 911 300 ÷ 2 = 26 252 534 654 402 756 955 650 + 0;
  • 26 252 534 654 402 756 955 650 ÷ 2 = 13 126 267 327 201 378 477 825 + 0;
  • 13 126 267 327 201 378 477 825 ÷ 2 = 6 563 133 663 600 689 238 912 + 1;
  • 6 563 133 663 600 689 238 912 ÷ 2 = 3 281 566 831 800 344 619 456 + 0;
  • 3 281 566 831 800 344 619 456 ÷ 2 = 1 640 783 415 900 172 309 728 + 0;
  • 1 640 783 415 900 172 309 728 ÷ 2 = 820 391 707 950 086 154 864 + 0;
  • 820 391 707 950 086 154 864 ÷ 2 = 410 195 853 975 043 077 432 + 0;
  • 410 195 853 975 043 077 432 ÷ 2 = 205 097 926 987 521 538 716 + 0;
  • 205 097 926 987 521 538 716 ÷ 2 = 102 548 963 493 760 769 358 + 0;
  • 102 548 963 493 760 769 358 ÷ 2 = 51 274 481 746 880 384 679 + 0;
  • 51 274 481 746 880 384 679 ÷ 2 = 25 637 240 873 440 192 339 + 1;
  • 25 637 240 873 440 192 339 ÷ 2 = 12 818 620 436 720 096 169 + 1;
  • 12 818 620 436 720 096 169 ÷ 2 = 6 409 310 218 360 048 084 + 1;
  • 6 409 310 218 360 048 084 ÷ 2 = 3 204 655 109 180 024 042 + 0;
  • 3 204 655 109 180 024 042 ÷ 2 = 1 602 327 554 590 012 021 + 0;
  • 1 602 327 554 590 012 021 ÷ 2 = 801 163 777 295 006 010 + 1;
  • 801 163 777 295 006 010 ÷ 2 = 400 581 888 647 503 005 + 0;
  • 400 581 888 647 503 005 ÷ 2 = 200 290 944 323 751 502 + 1;
  • 200 290 944 323 751 502 ÷ 2 = 100 145 472 161 875 751 + 0;
  • 100 145 472 161 875 751 ÷ 2 = 50 072 736 080 937 875 + 1;
  • 50 072 736 080 937 875 ÷ 2 = 25 036 368 040 468 937 + 1;
  • 25 036 368 040 468 937 ÷ 2 = 12 518 184 020 234 468 + 1;
  • 12 518 184 020 234 468 ÷ 2 = 6 259 092 010 117 234 + 0;
  • 6 259 092 010 117 234 ÷ 2 = 3 129 546 005 058 617 + 0;
  • 3 129 546 005 058 617 ÷ 2 = 1 564 773 002 529 308 + 1;
  • 1 564 773 002 529 308 ÷ 2 = 782 386 501 264 654 + 0;
  • 782 386 501 264 654 ÷ 2 = 391 193 250 632 327 + 0;
  • 391 193 250 632 327 ÷ 2 = 195 596 625 316 163 + 1;
  • 195 596 625 316 163 ÷ 2 = 97 798 312 658 081 + 1;
  • 97 798 312 658 081 ÷ 2 = 48 899 156 329 040 + 1;
  • 48 899 156 329 040 ÷ 2 = 24 449 578 164 520 + 0;
  • 24 449 578 164 520 ÷ 2 = 12 224 789 082 260 + 0;
  • 12 224 789 082 260 ÷ 2 = 6 112 394 541 130 + 0;
  • 6 112 394 541 130 ÷ 2 = 3 056 197 270 565 + 0;
  • 3 056 197 270 565 ÷ 2 = 1 528 098 635 282 + 1;
  • 1 528 098 635 282 ÷ 2 = 764 049 317 641 + 0;
  • 764 049 317 641 ÷ 2 = 382 024 658 820 + 1;
  • 382 024 658 820 ÷ 2 = 191 012 329 410 + 0;
  • 191 012 329 410 ÷ 2 = 95 506 164 705 + 0;
  • 95 506 164 705 ÷ 2 = 47 753 082 352 + 1;
  • 47 753 082 352 ÷ 2 = 23 876 541 176 + 0;
  • 23 876 541 176 ÷ 2 = 11 938 270 588 + 0;
  • 11 938 270 588 ÷ 2 = 5 969 135 294 + 0;
  • 5 969 135 294 ÷ 2 = 2 984 567 647 + 0;
  • 2 984 567 647 ÷ 2 = 1 492 283 823 + 1;
  • 1 492 283 823 ÷ 2 = 746 141 911 + 1;
  • 746 141 911 ÷ 2 = 373 070 955 + 1;
  • 373 070 955 ÷ 2 = 186 535 477 + 1;
  • 186 535 477 ÷ 2 = 93 267 738 + 1;
  • 93 267 738 ÷ 2 = 46 633 869 + 0;
  • 46 633 869 ÷ 2 = 23 316 934 + 1;
  • 23 316 934 ÷ 2 = 11 658 467 + 0;
  • 11 658 467 ÷ 2 = 5 829 233 + 1;
  • 5 829 233 ÷ 2 = 2 914 616 + 1;
  • 2 914 616 ÷ 2 = 1 457 308 + 0;
  • 1 457 308 ÷ 2 = 728 654 + 0;
  • 728 654 ÷ 2 = 364 327 + 0;
  • 364 327 ÷ 2 = 182 163 + 1;
  • 182 163 ÷ 2 = 91 081 + 1;
  • 91 081 ÷ 2 = 45 540 + 1;
  • 45 540 ÷ 2 = 22 770 + 0;
  • 22 770 ÷ 2 = 11 385 + 0;
  • 11 385 ÷ 2 = 5 692 + 1;
  • 5 692 ÷ 2 = 2 846 + 0;
  • 2 846 ÷ 2 = 1 423 + 0;
  • 1 423 ÷ 2 = 711 + 1;
  • 711 ÷ 2 = 355 + 1;
  • 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.

110 111 111 111 100 101 110 111 109 025(10) =


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


3. Normalize the binary representation of the number.

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


110 111 111 111 100 101 110 111 109 025(10) =


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


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


1.0110 0011 1100 1001 1100 0110 1011 1110 0001 0010 1000 0111 0010 0111 0101 0011 1000 0000 1000 0111 0111 1111 1010 0001(2) × 296


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


Mantissa (not normalized):
1.0110 0011 1100 1001 1100 0110 1011 1110 0001 0010 1000 0111 0010 0111 0101 0011 1000 0000 1000 0111 0111 1111 1010 0001


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


96 + 2(8-1) - 1 =


(96 + 127)(10) =


223(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;
  • 223 ÷ 2 = 111 + 1;
  • 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;

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) =


223(10) =


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


011 0001 1110 0100 1110 0011


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 1111


Mantissa (23 bits) =
011 0001 1110 0100 1110 0011


Decimal number 110 111 111 111 100 101 110 111 109 025 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1111 - 011 0001 1110 0100 1110 0011

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