100 001 011 011 100 000 000 000 000 001 134 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 100 001 011 011 100 000 000 000 000 001 134(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
100 001 011 011 100 000 000 000 000 001 134(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;
  • 100 001 011 011 100 000 000 000 000 001 134 ÷ 2 = 50 000 505 505 550 000 000 000 000 000 567 + 0;
  • 50 000 505 505 550 000 000 000 000 000 567 ÷ 2 = 25 000 252 752 775 000 000 000 000 000 283 + 1;
  • 25 000 252 752 775 000 000 000 000 000 283 ÷ 2 = 12 500 126 376 387 500 000 000 000 000 141 + 1;
  • 12 500 126 376 387 500 000 000 000 000 141 ÷ 2 = 6 250 063 188 193 750 000 000 000 000 070 + 1;
  • 6 250 063 188 193 750 000 000 000 000 070 ÷ 2 = 3 125 031 594 096 875 000 000 000 000 035 + 0;
  • 3 125 031 594 096 875 000 000 000 000 035 ÷ 2 = 1 562 515 797 048 437 500 000 000 000 017 + 1;
  • 1 562 515 797 048 437 500 000 000 000 017 ÷ 2 = 781 257 898 524 218 750 000 000 000 008 + 1;
  • 781 257 898 524 218 750 000 000 000 008 ÷ 2 = 390 628 949 262 109 375 000 000 000 004 + 0;
  • 390 628 949 262 109 375 000 000 000 004 ÷ 2 = 195 314 474 631 054 687 500 000 000 002 + 0;
  • 195 314 474 631 054 687 500 000 000 002 ÷ 2 = 97 657 237 315 527 343 750 000 000 001 + 0;
  • 97 657 237 315 527 343 750 000 000 001 ÷ 2 = 48 828 618 657 763 671 875 000 000 000 + 1;
  • 48 828 618 657 763 671 875 000 000 000 ÷ 2 = 24 414 309 328 881 835 937 500 000 000 + 0;
  • 24 414 309 328 881 835 937 500 000 000 ÷ 2 = 12 207 154 664 440 917 968 750 000 000 + 0;
  • 12 207 154 664 440 917 968 750 000 000 ÷ 2 = 6 103 577 332 220 458 984 375 000 000 + 0;
  • 6 103 577 332 220 458 984 375 000 000 ÷ 2 = 3 051 788 666 110 229 492 187 500 000 + 0;
  • 3 051 788 666 110 229 492 187 500 000 ÷ 2 = 1 525 894 333 055 114 746 093 750 000 + 0;
  • 1 525 894 333 055 114 746 093 750 000 ÷ 2 = 762 947 166 527 557 373 046 875 000 + 0;
  • 762 947 166 527 557 373 046 875 000 ÷ 2 = 381 473 583 263 778 686 523 437 500 + 0;
  • 381 473 583 263 778 686 523 437 500 ÷ 2 = 190 736 791 631 889 343 261 718 750 + 0;
  • 190 736 791 631 889 343 261 718 750 ÷ 2 = 95 368 395 815 944 671 630 859 375 + 0;
  • 95 368 395 815 944 671 630 859 375 ÷ 2 = 47 684 197 907 972 335 815 429 687 + 1;
  • 47 684 197 907 972 335 815 429 687 ÷ 2 = 23 842 098 953 986 167 907 714 843 + 1;
  • 23 842 098 953 986 167 907 714 843 ÷ 2 = 11 921 049 476 993 083 953 857 421 + 1;
  • 11 921 049 476 993 083 953 857 421 ÷ 2 = 5 960 524 738 496 541 976 928 710 + 1;
  • 5 960 524 738 496 541 976 928 710 ÷ 2 = 2 980 262 369 248 270 988 464 355 + 0;
  • 2 980 262 369 248 270 988 464 355 ÷ 2 = 1 490 131 184 624 135 494 232 177 + 1;
  • 1 490 131 184 624 135 494 232 177 ÷ 2 = 745 065 592 312 067 747 116 088 + 1;
  • 745 065 592 312 067 747 116 088 ÷ 2 = 372 532 796 156 033 873 558 044 + 0;
  • 372 532 796 156 033 873 558 044 ÷ 2 = 186 266 398 078 016 936 779 022 + 0;
  • 186 266 398 078 016 936 779 022 ÷ 2 = 93 133 199 039 008 468 389 511 + 0;
  • 93 133 199 039 008 468 389 511 ÷ 2 = 46 566 599 519 504 234 194 755 + 1;
  • 46 566 599 519 504 234 194 755 ÷ 2 = 23 283 299 759 752 117 097 377 + 1;
  • 23 283 299 759 752 117 097 377 ÷ 2 = 11 641 649 879 876 058 548 688 + 1;
  • 11 641 649 879 876 058 548 688 ÷ 2 = 5 820 824 939 938 029 274 344 + 0;
  • 5 820 824 939 938 029 274 344 ÷ 2 = 2 910 412 469 969 014 637 172 + 0;
  • 2 910 412 469 969 014 637 172 ÷ 2 = 1 455 206 234 984 507 318 586 + 0;
  • 1 455 206 234 984 507 318 586 ÷ 2 = 727 603 117 492 253 659 293 + 0;
  • 727 603 117 492 253 659 293 ÷ 2 = 363 801 558 746 126 829 646 + 1;
  • 363 801 558 746 126 829 646 ÷ 2 = 181 900 779 373 063 414 823 + 0;
  • 181 900 779 373 063 414 823 ÷ 2 = 90 950 389 686 531 707 411 + 1;
  • 90 950 389 686 531 707 411 ÷ 2 = 45 475 194 843 265 853 705 + 1;
  • 45 475 194 843 265 853 705 ÷ 2 = 22 737 597 421 632 926 852 + 1;
  • 22 737 597 421 632 926 852 ÷ 2 = 11 368 798 710 816 463 426 + 0;
  • 11 368 798 710 816 463 426 ÷ 2 = 5 684 399 355 408 231 713 + 0;
  • 5 684 399 355 408 231 713 ÷ 2 = 2 842 199 677 704 115 856 + 1;
  • 2 842 199 677 704 115 856 ÷ 2 = 1 421 099 838 852 057 928 + 0;
  • 1 421 099 838 852 057 928 ÷ 2 = 710 549 919 426 028 964 + 0;
  • 710 549 919 426 028 964 ÷ 2 = 355 274 959 713 014 482 + 0;
  • 355 274 959 713 014 482 ÷ 2 = 177 637 479 856 507 241 + 0;
  • 177 637 479 856 507 241 ÷ 2 = 88 818 739 928 253 620 + 1;
  • 88 818 739 928 253 620 ÷ 2 = 44 409 369 964 126 810 + 0;
  • 44 409 369 964 126 810 ÷ 2 = 22 204 684 982 063 405 + 0;
  • 22 204 684 982 063 405 ÷ 2 = 11 102 342 491 031 702 + 1;
  • 11 102 342 491 031 702 ÷ 2 = 5 551 171 245 515 851 + 0;
  • 5 551 171 245 515 851 ÷ 2 = 2 775 585 622 757 925 + 1;
  • 2 775 585 622 757 925 ÷ 2 = 1 387 792 811 378 962 + 1;
  • 1 387 792 811 378 962 ÷ 2 = 693 896 405 689 481 + 0;
  • 693 896 405 689 481 ÷ 2 = 346 948 202 844 740 + 1;
  • 346 948 202 844 740 ÷ 2 = 173 474 101 422 370 + 0;
  • 173 474 101 422 370 ÷ 2 = 86 737 050 711 185 + 0;
  • 86 737 050 711 185 ÷ 2 = 43 368 525 355 592 + 1;
  • 43 368 525 355 592 ÷ 2 = 21 684 262 677 796 + 0;
  • 21 684 262 677 796 ÷ 2 = 10 842 131 338 898 + 0;
  • 10 842 131 338 898 ÷ 2 = 5 421 065 669 449 + 0;
  • 5 421 065 669 449 ÷ 2 = 2 710 532 834 724 + 1;
  • 2 710 532 834 724 ÷ 2 = 1 355 266 417 362 + 0;
  • 1 355 266 417 362 ÷ 2 = 677 633 208 681 + 0;
  • 677 633 208 681 ÷ 2 = 338 816 604 340 + 1;
  • 338 816 604 340 ÷ 2 = 169 408 302 170 + 0;
  • 169 408 302 170 ÷ 2 = 84 704 151 085 + 0;
  • 84 704 151 085 ÷ 2 = 42 352 075 542 + 1;
  • 42 352 075 542 ÷ 2 = 21 176 037 771 + 0;
  • 21 176 037 771 ÷ 2 = 10 588 018 885 + 1;
  • 10 588 018 885 ÷ 2 = 5 294 009 442 + 1;
  • 5 294 009 442 ÷ 2 = 2 647 004 721 + 0;
  • 2 647 004 721 ÷ 2 = 1 323 502 360 + 1;
  • 1 323 502 360 ÷ 2 = 661 751 180 + 0;
  • 661 751 180 ÷ 2 = 330 875 590 + 0;
  • 330 875 590 ÷ 2 = 165 437 795 + 0;
  • 165 437 795 ÷ 2 = 82 718 897 + 1;
  • 82 718 897 ÷ 2 = 41 359 448 + 1;
  • 41 359 448 ÷ 2 = 20 679 724 + 0;
  • 20 679 724 ÷ 2 = 10 339 862 + 0;
  • 10 339 862 ÷ 2 = 5 169 931 + 0;
  • 5 169 931 ÷ 2 = 2 584 965 + 1;
  • 2 584 965 ÷ 2 = 1 292 482 + 1;
  • 1 292 482 ÷ 2 = 646 241 + 0;
  • 646 241 ÷ 2 = 323 120 + 1;
  • 323 120 ÷ 2 = 161 560 + 0;
  • 161 560 ÷ 2 = 80 780 + 0;
  • 80 780 ÷ 2 = 40 390 + 0;
  • 40 390 ÷ 2 = 20 195 + 0;
  • 20 195 ÷ 2 = 10 097 + 1;
  • 10 097 ÷ 2 = 5 048 + 1;
  • 5 048 ÷ 2 = 2 524 + 0;
  • 2 524 ÷ 2 = 1 262 + 0;
  • 1 262 ÷ 2 = 631 + 0;
  • 631 ÷ 2 = 315 + 1;
  • 315 ÷ 2 = 157 + 1;
  • 157 ÷ 2 = 78 + 1;
  • 78 ÷ 2 = 39 + 0;
  • 39 ÷ 2 = 19 + 1;
  • 19 ÷ 2 = 9 + 1;
  • 9 ÷ 2 = 4 + 1;
  • 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.

100 001 011 011 100 000 000 000 000 001 134(10) =


100 1110 1110 0011 0000 1011 0001 1000 1011 0100 1001 0001 0010 1101 0010 0001 0011 1010 0001 1100 0110 1111 0000 0000 0100 0110 1110(2)


3. Normalize the binary representation of the number.

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


100 001 011 011 100 000 000 000 000 001 134(10) =


100 1110 1110 0011 0000 1011 0001 1000 1011 0100 1001 0001 0010 1101 0010 0001 0011 1010 0001 1100 0110 1111 0000 0000 0100 0110 1110(2) =


100 1110 1110 0011 0000 1011 0001 1000 1011 0100 1001 0001 0010 1101 0010 0001 0011 1010 0001 1100 0110 1111 0000 0000 0100 0110 1110(2) × 20 =


1.0011 1011 1000 1100 0010 1100 0110 0010 1101 0010 0100 0100 1011 0100 1000 0100 1110 1000 0111 0001 1011 1100 0000 0001 0001 1011 10(2) × 2106


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


Mantissa (not normalized):
1.0011 1011 1000 1100 0010 1100 0110 0010 1101 0010 0100 0100 1011 0100 1000 0100 1110 1000 0111 0001 1011 1100 0000 0001 0001 1011 10


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


106 + 2(8-1) - 1 =


(106 + 127)(10) =


233(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;
  • 233 ÷ 2 = 116 + 1;
  • 116 ÷ 2 = 58 + 0;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 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) =


233(10) =


1110 1001(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. 001 1101 1100 0110 0001 0110 001 1000 1011 0100 1001 0001 0010 1101 0010 0001 0011 1010 0001 1100 0110 1111 0000 0000 0100 0110 1110 =


001 1101 1100 0110 0001 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) =
1110 1001


Mantissa (23 bits) =
001 1101 1100 0110 0001 0110


Decimal number 100 001 011 011 100 000 000 000 000 001 134 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1001 - 001 1101 1100 0110 0001 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