1 100 110 001 001 100 000 000 000 491 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 100 110 001 001 100 000 000 000 491(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 110 001 001 100 000 000 000 491(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 110 001 001 100 000 000 000 491 ÷ 2 = 550 055 000 500 550 000 000 000 245 + 1;
  • 550 055 000 500 550 000 000 000 245 ÷ 2 = 275 027 500 250 275 000 000 000 122 + 1;
  • 275 027 500 250 275 000 000 000 122 ÷ 2 = 137 513 750 125 137 500 000 000 061 + 0;
  • 137 513 750 125 137 500 000 000 061 ÷ 2 = 68 756 875 062 568 750 000 000 030 + 1;
  • 68 756 875 062 568 750 000 000 030 ÷ 2 = 34 378 437 531 284 375 000 000 015 + 0;
  • 34 378 437 531 284 375 000 000 015 ÷ 2 = 17 189 218 765 642 187 500 000 007 + 1;
  • 17 189 218 765 642 187 500 000 007 ÷ 2 = 8 594 609 382 821 093 750 000 003 + 1;
  • 8 594 609 382 821 093 750 000 003 ÷ 2 = 4 297 304 691 410 546 875 000 001 + 1;
  • 4 297 304 691 410 546 875 000 001 ÷ 2 = 2 148 652 345 705 273 437 500 000 + 1;
  • 2 148 652 345 705 273 437 500 000 ÷ 2 = 1 074 326 172 852 636 718 750 000 + 0;
  • 1 074 326 172 852 636 718 750 000 ÷ 2 = 537 163 086 426 318 359 375 000 + 0;
  • 537 163 086 426 318 359 375 000 ÷ 2 = 268 581 543 213 159 179 687 500 + 0;
  • 268 581 543 213 159 179 687 500 ÷ 2 = 134 290 771 606 579 589 843 750 + 0;
  • 134 290 771 606 579 589 843 750 ÷ 2 = 67 145 385 803 289 794 921 875 + 0;
  • 67 145 385 803 289 794 921 875 ÷ 2 = 33 572 692 901 644 897 460 937 + 1;
  • 33 572 692 901 644 897 460 937 ÷ 2 = 16 786 346 450 822 448 730 468 + 1;
  • 16 786 346 450 822 448 730 468 ÷ 2 = 8 393 173 225 411 224 365 234 + 0;
  • 8 393 173 225 411 224 365 234 ÷ 2 = 4 196 586 612 705 612 182 617 + 0;
  • 4 196 586 612 705 612 182 617 ÷ 2 = 2 098 293 306 352 806 091 308 + 1;
  • 2 098 293 306 352 806 091 308 ÷ 2 = 1 049 146 653 176 403 045 654 + 0;
  • 1 049 146 653 176 403 045 654 ÷ 2 = 524 573 326 588 201 522 827 + 0;
  • 524 573 326 588 201 522 827 ÷ 2 = 262 286 663 294 100 761 413 + 1;
  • 262 286 663 294 100 761 413 ÷ 2 = 131 143 331 647 050 380 706 + 1;
  • 131 143 331 647 050 380 706 ÷ 2 = 65 571 665 823 525 190 353 + 0;
  • 65 571 665 823 525 190 353 ÷ 2 = 32 785 832 911 762 595 176 + 1;
  • 32 785 832 911 762 595 176 ÷ 2 = 16 392 916 455 881 297 588 + 0;
  • 16 392 916 455 881 297 588 ÷ 2 = 8 196 458 227 940 648 794 + 0;
  • 8 196 458 227 940 648 794 ÷ 2 = 4 098 229 113 970 324 397 + 0;
  • 4 098 229 113 970 324 397 ÷ 2 = 2 049 114 556 985 162 198 + 1;
  • 2 049 114 556 985 162 198 ÷ 2 = 1 024 557 278 492 581 099 + 0;
  • 1 024 557 278 492 581 099 ÷ 2 = 512 278 639 246 290 549 + 1;
  • 512 278 639 246 290 549 ÷ 2 = 256 139 319 623 145 274 + 1;
  • 256 139 319 623 145 274 ÷ 2 = 128 069 659 811 572 637 + 0;
  • 128 069 659 811 572 637 ÷ 2 = 64 034 829 905 786 318 + 1;
  • 64 034 829 905 786 318 ÷ 2 = 32 017 414 952 893 159 + 0;
  • 32 017 414 952 893 159 ÷ 2 = 16 008 707 476 446 579 + 1;
  • 16 008 707 476 446 579 ÷ 2 = 8 004 353 738 223 289 + 1;
  • 8 004 353 738 223 289 ÷ 2 = 4 002 176 869 111 644 + 1;
  • 4 002 176 869 111 644 ÷ 2 = 2 001 088 434 555 822 + 0;
  • 2 001 088 434 555 822 ÷ 2 = 1 000 544 217 277 911 + 0;
  • 1 000 544 217 277 911 ÷ 2 = 500 272 108 638 955 + 1;
  • 500 272 108 638 955 ÷ 2 = 250 136 054 319 477 + 1;
  • 250 136 054 319 477 ÷ 2 = 125 068 027 159 738 + 1;
  • 125 068 027 159 738 ÷ 2 = 62 534 013 579 869 + 0;
  • 62 534 013 579 869 ÷ 2 = 31 267 006 789 934 + 1;
  • 31 267 006 789 934 ÷ 2 = 15 633 503 394 967 + 0;
  • 15 633 503 394 967 ÷ 2 = 7 816 751 697 483 + 1;
  • 7 816 751 697 483 ÷ 2 = 3 908 375 848 741 + 1;
  • 3 908 375 848 741 ÷ 2 = 1 954 187 924 370 + 1;
  • 1 954 187 924 370 ÷ 2 = 977 093 962 185 + 0;
  • 977 093 962 185 ÷ 2 = 488 546 981 092 + 1;
  • 488 546 981 092 ÷ 2 = 244 273 490 546 + 0;
  • 244 273 490 546 ÷ 2 = 122 136 745 273 + 0;
  • 122 136 745 273 ÷ 2 = 61 068 372 636 + 1;
  • 61 068 372 636 ÷ 2 = 30 534 186 318 + 0;
  • 30 534 186 318 ÷ 2 = 15 267 093 159 + 0;
  • 15 267 093 159 ÷ 2 = 7 633 546 579 + 1;
  • 7 633 546 579 ÷ 2 = 3 816 773 289 + 1;
  • 3 816 773 289 ÷ 2 = 1 908 386 644 + 1;
  • 1 908 386 644 ÷ 2 = 954 193 322 + 0;
  • 954 193 322 ÷ 2 = 477 096 661 + 0;
  • 477 096 661 ÷ 2 = 238 548 330 + 1;
  • 238 548 330 ÷ 2 = 119 274 165 + 0;
  • 119 274 165 ÷ 2 = 59 637 082 + 1;
  • 59 637 082 ÷ 2 = 29 818 541 + 0;
  • 29 818 541 ÷ 2 = 14 909 270 + 1;
  • 14 909 270 ÷ 2 = 7 454 635 + 0;
  • 7 454 635 ÷ 2 = 3 727 317 + 1;
  • 3 727 317 ÷ 2 = 1 863 658 + 1;
  • 1 863 658 ÷ 2 = 931 829 + 0;
  • 931 829 ÷ 2 = 465 914 + 1;
  • 465 914 ÷ 2 = 232 957 + 0;
  • 232 957 ÷ 2 = 116 478 + 1;
  • 116 478 ÷ 2 = 58 239 + 0;
  • 58 239 ÷ 2 = 29 119 + 1;
  • 29 119 ÷ 2 = 14 559 + 1;
  • 14 559 ÷ 2 = 7 279 + 1;
  • 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 110 001 001 100 000 000 000 491(10) =


11 1000 1101 1111 1101 0101 1010 1010 0111 0010 0101 1101 0111 0011 1010 1101 0001 0110 0100 1100 0001 1110 1011(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 110 001 001 100 000 000 000 491(10) =


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


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


1.1100 0110 1111 1110 1010 1101 0101 0011 1001 0010 1110 1011 1001 1101 0110 1000 1011 0010 0110 0000 1111 0101 1(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 1110 1010 1101 0101 0011 1001 0010 1110 1011 1001 1101 0110 1000 1011 0010 0110 0000 1111 0101 1


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


110 0011 0111 1111 0101 0110


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 1111 0101 0110


Decimal number 1 100 110 001 001 100 000 000 000 491 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1000 - 110 0011 0111 1111 0101 0110


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