1 101 011 101 101 010 000 000 000 000 130 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 101 011 101 101 010 000 000 000 000 130(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 101 011 101 101 010 000 000 000 000 130(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 101 011 101 101 010 000 000 000 000 130 ÷ 2 = 550 505 550 550 505 000 000 000 000 065 + 0;
  • 550 505 550 550 505 000 000 000 000 065 ÷ 2 = 275 252 775 275 252 500 000 000 000 032 + 1;
  • 275 252 775 275 252 500 000 000 000 032 ÷ 2 = 137 626 387 637 626 250 000 000 000 016 + 0;
  • 137 626 387 637 626 250 000 000 000 016 ÷ 2 = 68 813 193 818 813 125 000 000 000 008 + 0;
  • 68 813 193 818 813 125 000 000 000 008 ÷ 2 = 34 406 596 909 406 562 500 000 000 004 + 0;
  • 34 406 596 909 406 562 500 000 000 004 ÷ 2 = 17 203 298 454 703 281 250 000 000 002 + 0;
  • 17 203 298 454 703 281 250 000 000 002 ÷ 2 = 8 601 649 227 351 640 625 000 000 001 + 0;
  • 8 601 649 227 351 640 625 000 000 001 ÷ 2 = 4 300 824 613 675 820 312 500 000 000 + 1;
  • 4 300 824 613 675 820 312 500 000 000 ÷ 2 = 2 150 412 306 837 910 156 250 000 000 + 0;
  • 2 150 412 306 837 910 156 250 000 000 ÷ 2 = 1 075 206 153 418 955 078 125 000 000 + 0;
  • 1 075 206 153 418 955 078 125 000 000 ÷ 2 = 537 603 076 709 477 539 062 500 000 + 0;
  • 537 603 076 709 477 539 062 500 000 ÷ 2 = 268 801 538 354 738 769 531 250 000 + 0;
  • 268 801 538 354 738 769 531 250 000 ÷ 2 = 134 400 769 177 369 384 765 625 000 + 0;
  • 134 400 769 177 369 384 765 625 000 ÷ 2 = 67 200 384 588 684 692 382 812 500 + 0;
  • 67 200 384 588 684 692 382 812 500 ÷ 2 = 33 600 192 294 342 346 191 406 250 + 0;
  • 33 600 192 294 342 346 191 406 250 ÷ 2 = 16 800 096 147 171 173 095 703 125 + 0;
  • 16 800 096 147 171 173 095 703 125 ÷ 2 = 8 400 048 073 585 586 547 851 562 + 1;
  • 8 400 048 073 585 586 547 851 562 ÷ 2 = 4 200 024 036 792 793 273 925 781 + 0;
  • 4 200 024 036 792 793 273 925 781 ÷ 2 = 2 100 012 018 396 396 636 962 890 + 1;
  • 2 100 012 018 396 396 636 962 890 ÷ 2 = 1 050 006 009 198 198 318 481 445 + 0;
  • 1 050 006 009 198 198 318 481 445 ÷ 2 = 525 003 004 599 099 159 240 722 + 1;
  • 525 003 004 599 099 159 240 722 ÷ 2 = 262 501 502 299 549 579 620 361 + 0;
  • 262 501 502 299 549 579 620 361 ÷ 2 = 131 250 751 149 774 789 810 180 + 1;
  • 131 250 751 149 774 789 810 180 ÷ 2 = 65 625 375 574 887 394 905 090 + 0;
  • 65 625 375 574 887 394 905 090 ÷ 2 = 32 812 687 787 443 697 452 545 + 0;
  • 32 812 687 787 443 697 452 545 ÷ 2 = 16 406 343 893 721 848 726 272 + 1;
  • 16 406 343 893 721 848 726 272 ÷ 2 = 8 203 171 946 860 924 363 136 + 0;
  • 8 203 171 946 860 924 363 136 ÷ 2 = 4 101 585 973 430 462 181 568 + 0;
  • 4 101 585 973 430 462 181 568 ÷ 2 = 2 050 792 986 715 231 090 784 + 0;
  • 2 050 792 986 715 231 090 784 ÷ 2 = 1 025 396 493 357 615 545 392 + 0;
  • 1 025 396 493 357 615 545 392 ÷ 2 = 512 698 246 678 807 772 696 + 0;
  • 512 698 246 678 807 772 696 ÷ 2 = 256 349 123 339 403 886 348 + 0;
  • 256 349 123 339 403 886 348 ÷ 2 = 128 174 561 669 701 943 174 + 0;
  • 128 174 561 669 701 943 174 ÷ 2 = 64 087 280 834 850 971 587 + 0;
  • 64 087 280 834 850 971 587 ÷ 2 = 32 043 640 417 425 485 793 + 1;
  • 32 043 640 417 425 485 793 ÷ 2 = 16 021 820 208 712 742 896 + 1;
  • 16 021 820 208 712 742 896 ÷ 2 = 8 010 910 104 356 371 448 + 0;
  • 8 010 910 104 356 371 448 ÷ 2 = 4 005 455 052 178 185 724 + 0;
  • 4 005 455 052 178 185 724 ÷ 2 = 2 002 727 526 089 092 862 + 0;
  • 2 002 727 526 089 092 862 ÷ 2 = 1 001 363 763 044 546 431 + 0;
  • 1 001 363 763 044 546 431 ÷ 2 = 500 681 881 522 273 215 + 1;
  • 500 681 881 522 273 215 ÷ 2 = 250 340 940 761 136 607 + 1;
  • 250 340 940 761 136 607 ÷ 2 = 125 170 470 380 568 303 + 1;
  • 125 170 470 380 568 303 ÷ 2 = 62 585 235 190 284 151 + 1;
  • 62 585 235 190 284 151 ÷ 2 = 31 292 617 595 142 075 + 1;
  • 31 292 617 595 142 075 ÷ 2 = 15 646 308 797 571 037 + 1;
  • 15 646 308 797 571 037 ÷ 2 = 7 823 154 398 785 518 + 1;
  • 7 823 154 398 785 518 ÷ 2 = 3 911 577 199 392 759 + 0;
  • 3 911 577 199 392 759 ÷ 2 = 1 955 788 599 696 379 + 1;
  • 1 955 788 599 696 379 ÷ 2 = 977 894 299 848 189 + 1;
  • 977 894 299 848 189 ÷ 2 = 488 947 149 924 094 + 1;
  • 488 947 149 924 094 ÷ 2 = 244 473 574 962 047 + 0;
  • 244 473 574 962 047 ÷ 2 = 122 236 787 481 023 + 1;
  • 122 236 787 481 023 ÷ 2 = 61 118 393 740 511 + 1;
  • 61 118 393 740 511 ÷ 2 = 30 559 196 870 255 + 1;
  • 30 559 196 870 255 ÷ 2 = 15 279 598 435 127 + 1;
  • 15 279 598 435 127 ÷ 2 = 7 639 799 217 563 + 1;
  • 7 639 799 217 563 ÷ 2 = 3 819 899 608 781 + 1;
  • 3 819 899 608 781 ÷ 2 = 1 909 949 804 390 + 1;
  • 1 909 949 804 390 ÷ 2 = 954 974 902 195 + 0;
  • 954 974 902 195 ÷ 2 = 477 487 451 097 + 1;
  • 477 487 451 097 ÷ 2 = 238 743 725 548 + 1;
  • 238 743 725 548 ÷ 2 = 119 371 862 774 + 0;
  • 119 371 862 774 ÷ 2 = 59 685 931 387 + 0;
  • 59 685 931 387 ÷ 2 = 29 842 965 693 + 1;
  • 29 842 965 693 ÷ 2 = 14 921 482 846 + 1;
  • 14 921 482 846 ÷ 2 = 7 460 741 423 + 0;
  • 7 460 741 423 ÷ 2 = 3 730 370 711 + 1;
  • 3 730 370 711 ÷ 2 = 1 865 185 355 + 1;
  • 1 865 185 355 ÷ 2 = 932 592 677 + 1;
  • 932 592 677 ÷ 2 = 466 296 338 + 1;
  • 466 296 338 ÷ 2 = 233 148 169 + 0;
  • 233 148 169 ÷ 2 = 116 574 084 + 1;
  • 116 574 084 ÷ 2 = 58 287 042 + 0;
  • 58 287 042 ÷ 2 = 29 143 521 + 0;
  • 29 143 521 ÷ 2 = 14 571 760 + 1;
  • 14 571 760 ÷ 2 = 7 285 880 + 0;
  • 7 285 880 ÷ 2 = 3 642 940 + 0;
  • 3 642 940 ÷ 2 = 1 821 470 + 0;
  • 1 821 470 ÷ 2 = 910 735 + 0;
  • 910 735 ÷ 2 = 455 367 + 1;
  • 455 367 ÷ 2 = 227 683 + 1;
  • 227 683 ÷ 2 = 113 841 + 1;
  • 113 841 ÷ 2 = 56 920 + 1;
  • 56 920 ÷ 2 = 28 460 + 0;
  • 28 460 ÷ 2 = 14 230 + 0;
  • 14 230 ÷ 2 = 7 115 + 0;
  • 7 115 ÷ 2 = 3 557 + 1;
  • 3 557 ÷ 2 = 1 778 + 1;
  • 1 778 ÷ 2 = 889 + 0;
  • 889 ÷ 2 = 444 + 1;
  • 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 101 011 101 101 010 000 000 000 000 130(10) =


1101 1110 0101 1000 1111 0000 1001 0111 1011 0011 0111 1111 0111 0111 1111 0000 1100 0000 0010 0101 0101 0000 0000 1000 0010(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 101 011 101 101 010 000 000 000 000 130(10) =


1101 1110 0101 1000 1111 0000 1001 0111 1011 0011 0111 1111 0111 0111 1111 0000 1100 0000 0010 0101 0101 0000 0000 1000 0010(2) =


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


1.1011 1100 1011 0001 1110 0001 0010 1111 0110 0110 1111 1110 1110 1111 1110 0001 1000 0000 0100 1010 1010 0000 0001 0000 010(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 1011 0001 1110 0001 0010 1111 0110 0110 1111 1110 1110 1111 1110 0001 1000 0000 0100 1010 1010 0000 0001 0000 010


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 0101 1000 1111 0000 1001 0111 1011 0011 0111 1111 0111 0111 1111 0000 1100 0000 0010 0101 0101 0000 0000 1000 0010 =


101 1110 0101 1000 1111 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) =
1110 0010


Mantissa (23 bits) =
101 1110 0101 1000 1111 0000


Decimal number 1 101 011 101 101 010 000 000 000 000 130 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0010 - 101 1110 0101 1000 1111 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