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

Convert decimal 1 110 011 000 010 101 101 011 011 110 378(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 110 011 000 010 101 101 011 011 110 378(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 110 011 000 010 101 101 011 011 110 378 ÷ 2 = 555 005 500 005 050 550 505 505 555 189 + 0;
  • 555 005 500 005 050 550 505 505 555 189 ÷ 2 = 277 502 750 002 525 275 252 752 777 594 + 1;
  • 277 502 750 002 525 275 252 752 777 594 ÷ 2 = 138 751 375 001 262 637 626 376 388 797 + 0;
  • 138 751 375 001 262 637 626 376 388 797 ÷ 2 = 69 375 687 500 631 318 813 188 194 398 + 1;
  • 69 375 687 500 631 318 813 188 194 398 ÷ 2 = 34 687 843 750 315 659 406 594 097 199 + 0;
  • 34 687 843 750 315 659 406 594 097 199 ÷ 2 = 17 343 921 875 157 829 703 297 048 599 + 1;
  • 17 343 921 875 157 829 703 297 048 599 ÷ 2 = 8 671 960 937 578 914 851 648 524 299 + 1;
  • 8 671 960 937 578 914 851 648 524 299 ÷ 2 = 4 335 980 468 789 457 425 824 262 149 + 1;
  • 4 335 980 468 789 457 425 824 262 149 ÷ 2 = 2 167 990 234 394 728 712 912 131 074 + 1;
  • 2 167 990 234 394 728 712 912 131 074 ÷ 2 = 1 083 995 117 197 364 356 456 065 537 + 0;
  • 1 083 995 117 197 364 356 456 065 537 ÷ 2 = 541 997 558 598 682 178 228 032 768 + 1;
  • 541 997 558 598 682 178 228 032 768 ÷ 2 = 270 998 779 299 341 089 114 016 384 + 0;
  • 270 998 779 299 341 089 114 016 384 ÷ 2 = 135 499 389 649 670 544 557 008 192 + 0;
  • 135 499 389 649 670 544 557 008 192 ÷ 2 = 67 749 694 824 835 272 278 504 096 + 0;
  • 67 749 694 824 835 272 278 504 096 ÷ 2 = 33 874 847 412 417 636 139 252 048 + 0;
  • 33 874 847 412 417 636 139 252 048 ÷ 2 = 16 937 423 706 208 818 069 626 024 + 0;
  • 16 937 423 706 208 818 069 626 024 ÷ 2 = 8 468 711 853 104 409 034 813 012 + 0;
  • 8 468 711 853 104 409 034 813 012 ÷ 2 = 4 234 355 926 552 204 517 406 506 + 0;
  • 4 234 355 926 552 204 517 406 506 ÷ 2 = 2 117 177 963 276 102 258 703 253 + 0;
  • 2 117 177 963 276 102 258 703 253 ÷ 2 = 1 058 588 981 638 051 129 351 626 + 1;
  • 1 058 588 981 638 051 129 351 626 ÷ 2 = 529 294 490 819 025 564 675 813 + 0;
  • 529 294 490 819 025 564 675 813 ÷ 2 = 264 647 245 409 512 782 337 906 + 1;
  • 264 647 245 409 512 782 337 906 ÷ 2 = 132 323 622 704 756 391 168 953 + 0;
  • 132 323 622 704 756 391 168 953 ÷ 2 = 66 161 811 352 378 195 584 476 + 1;
  • 66 161 811 352 378 195 584 476 ÷ 2 = 33 080 905 676 189 097 792 238 + 0;
  • 33 080 905 676 189 097 792 238 ÷ 2 = 16 540 452 838 094 548 896 119 + 0;
  • 16 540 452 838 094 548 896 119 ÷ 2 = 8 270 226 419 047 274 448 059 + 1;
  • 8 270 226 419 047 274 448 059 ÷ 2 = 4 135 113 209 523 637 224 029 + 1;
  • 4 135 113 209 523 637 224 029 ÷ 2 = 2 067 556 604 761 818 612 014 + 1;
  • 2 067 556 604 761 818 612 014 ÷ 2 = 1 033 778 302 380 909 306 007 + 0;
  • 1 033 778 302 380 909 306 007 ÷ 2 = 516 889 151 190 454 653 003 + 1;
  • 516 889 151 190 454 653 003 ÷ 2 = 258 444 575 595 227 326 501 + 1;
  • 258 444 575 595 227 326 501 ÷ 2 = 129 222 287 797 613 663 250 + 1;
  • 129 222 287 797 613 663 250 ÷ 2 = 64 611 143 898 806 831 625 + 0;
  • 64 611 143 898 806 831 625 ÷ 2 = 32 305 571 949 403 415 812 + 1;
  • 32 305 571 949 403 415 812 ÷ 2 = 16 152 785 974 701 707 906 + 0;
  • 16 152 785 974 701 707 906 ÷ 2 = 8 076 392 987 350 853 953 + 0;
  • 8 076 392 987 350 853 953 ÷ 2 = 4 038 196 493 675 426 976 + 1;
  • 4 038 196 493 675 426 976 ÷ 2 = 2 019 098 246 837 713 488 + 0;
  • 2 019 098 246 837 713 488 ÷ 2 = 1 009 549 123 418 856 744 + 0;
  • 1 009 549 123 418 856 744 ÷ 2 = 504 774 561 709 428 372 + 0;
  • 504 774 561 709 428 372 ÷ 2 = 252 387 280 854 714 186 + 0;
  • 252 387 280 854 714 186 ÷ 2 = 126 193 640 427 357 093 + 0;
  • 126 193 640 427 357 093 ÷ 2 = 63 096 820 213 678 546 + 1;
  • 63 096 820 213 678 546 ÷ 2 = 31 548 410 106 839 273 + 0;
  • 31 548 410 106 839 273 ÷ 2 = 15 774 205 053 419 636 + 1;
  • 15 774 205 053 419 636 ÷ 2 = 7 887 102 526 709 818 + 0;
  • 7 887 102 526 709 818 ÷ 2 = 3 943 551 263 354 909 + 0;
  • 3 943 551 263 354 909 ÷ 2 = 1 971 775 631 677 454 + 1;
  • 1 971 775 631 677 454 ÷ 2 = 985 887 815 838 727 + 0;
  • 985 887 815 838 727 ÷ 2 = 492 943 907 919 363 + 1;
  • 492 943 907 919 363 ÷ 2 = 246 471 953 959 681 + 1;
  • 246 471 953 959 681 ÷ 2 = 123 235 976 979 840 + 1;
  • 123 235 976 979 840 ÷ 2 = 61 617 988 489 920 + 0;
  • 61 617 988 489 920 ÷ 2 = 30 808 994 244 960 + 0;
  • 30 808 994 244 960 ÷ 2 = 15 404 497 122 480 + 0;
  • 15 404 497 122 480 ÷ 2 = 7 702 248 561 240 + 0;
  • 7 702 248 561 240 ÷ 2 = 3 851 124 280 620 + 0;
  • 3 851 124 280 620 ÷ 2 = 1 925 562 140 310 + 0;
  • 1 925 562 140 310 ÷ 2 = 962 781 070 155 + 0;
  • 962 781 070 155 ÷ 2 = 481 390 535 077 + 1;
  • 481 390 535 077 ÷ 2 = 240 695 267 538 + 1;
  • 240 695 267 538 ÷ 2 = 120 347 633 769 + 0;
  • 120 347 633 769 ÷ 2 = 60 173 816 884 + 1;
  • 60 173 816 884 ÷ 2 = 30 086 908 442 + 0;
  • 30 086 908 442 ÷ 2 = 15 043 454 221 + 0;
  • 15 043 454 221 ÷ 2 = 7 521 727 110 + 1;
  • 7 521 727 110 ÷ 2 = 3 760 863 555 + 0;
  • 3 760 863 555 ÷ 2 = 1 880 431 777 + 1;
  • 1 880 431 777 ÷ 2 = 940 215 888 + 1;
  • 940 215 888 ÷ 2 = 470 107 944 + 0;
  • 470 107 944 ÷ 2 = 235 053 972 + 0;
  • 235 053 972 ÷ 2 = 117 526 986 + 0;
  • 117 526 986 ÷ 2 = 58 763 493 + 0;
  • 58 763 493 ÷ 2 = 29 381 746 + 1;
  • 29 381 746 ÷ 2 = 14 690 873 + 0;
  • 14 690 873 ÷ 2 = 7 345 436 + 1;
  • 7 345 436 ÷ 2 = 3 672 718 + 0;
  • 3 672 718 ÷ 2 = 1 836 359 + 0;
  • 1 836 359 ÷ 2 = 918 179 + 1;
  • 918 179 ÷ 2 = 459 089 + 1;
  • 459 089 ÷ 2 = 229 544 + 1;
  • 229 544 ÷ 2 = 114 772 + 0;
  • 114 772 ÷ 2 = 57 386 + 0;
  • 57 386 ÷ 2 = 28 693 + 0;
  • 28 693 ÷ 2 = 14 346 + 1;
  • 14 346 ÷ 2 = 7 173 + 0;
  • 7 173 ÷ 2 = 3 586 + 1;
  • 3 586 ÷ 2 = 1 793 + 0;
  • 1 793 ÷ 2 = 896 + 1;
  • 896 ÷ 2 = 448 + 0;
  • 448 ÷ 2 = 224 + 0;
  • 224 ÷ 2 = 112 + 0;
  • 112 ÷ 2 = 56 + 0;
  • 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 110 011 000 010 101 101 011 011 110 378(10) =


1110 0000 0010 1010 0011 1001 0100 0011 0100 1011 0000 0001 1101 0010 1000 0010 0101 1101 1100 1010 1000 0000 0101 1110 1010(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 110 011 000 010 101 101 011 011 110 378(10) =


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


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


1.1100 0000 0101 0100 0111 0010 1000 0110 1001 0110 0000 0011 1010 0101 0000 0100 1011 1011 1001 0101 0000 0000 1011 1101 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.1100 0000 0101 0100 0111 0010 1000 0110 1001 0110 0000 0011 1010 0101 0000 0100 1011 1011 1001 0101 0000 0000 1011 1101 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. 110 0000 0010 1010 0011 1001 0100 0011 0100 1011 0000 0001 1101 0010 1000 0010 0101 1101 1100 1010 1000 0000 0101 1110 1010 =


110 0000 0010 1010 0011 1001


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) =
110 0000 0010 1010 0011 1001


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

0 - 1110 0010 - 110 0000 0010 1010 0011 1001


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