10 011 001 001 110 099 999 999 999 999 812 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 011 001 001 110 099 999 999 999 999 812(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
10 011 001 001 110 099 999 999 999 999 812(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;
  • 10 011 001 001 110 099 999 999 999 999 812 ÷ 2 = 5 005 500 500 555 049 999 999 999 999 906 + 0;
  • 5 005 500 500 555 049 999 999 999 999 906 ÷ 2 = 2 502 750 250 277 524 999 999 999 999 953 + 0;
  • 2 502 750 250 277 524 999 999 999 999 953 ÷ 2 = 1 251 375 125 138 762 499 999 999 999 976 + 1;
  • 1 251 375 125 138 762 499 999 999 999 976 ÷ 2 = 625 687 562 569 381 249 999 999 999 988 + 0;
  • 625 687 562 569 381 249 999 999 999 988 ÷ 2 = 312 843 781 284 690 624 999 999 999 994 + 0;
  • 312 843 781 284 690 624 999 999 999 994 ÷ 2 = 156 421 890 642 345 312 499 999 999 997 + 0;
  • 156 421 890 642 345 312 499 999 999 997 ÷ 2 = 78 210 945 321 172 656 249 999 999 998 + 1;
  • 78 210 945 321 172 656 249 999 999 998 ÷ 2 = 39 105 472 660 586 328 124 999 999 999 + 0;
  • 39 105 472 660 586 328 124 999 999 999 ÷ 2 = 19 552 736 330 293 164 062 499 999 999 + 1;
  • 19 552 736 330 293 164 062 499 999 999 ÷ 2 = 9 776 368 165 146 582 031 249 999 999 + 1;
  • 9 776 368 165 146 582 031 249 999 999 ÷ 2 = 4 888 184 082 573 291 015 624 999 999 + 1;
  • 4 888 184 082 573 291 015 624 999 999 ÷ 2 = 2 444 092 041 286 645 507 812 499 999 + 1;
  • 2 444 092 041 286 645 507 812 499 999 ÷ 2 = 1 222 046 020 643 322 753 906 249 999 + 1;
  • 1 222 046 020 643 322 753 906 249 999 ÷ 2 = 611 023 010 321 661 376 953 124 999 + 1;
  • 611 023 010 321 661 376 953 124 999 ÷ 2 = 305 511 505 160 830 688 476 562 499 + 1;
  • 305 511 505 160 830 688 476 562 499 ÷ 2 = 152 755 752 580 415 344 238 281 249 + 1;
  • 152 755 752 580 415 344 238 281 249 ÷ 2 = 76 377 876 290 207 672 119 140 624 + 1;
  • 76 377 876 290 207 672 119 140 624 ÷ 2 = 38 188 938 145 103 836 059 570 312 + 0;
  • 38 188 938 145 103 836 059 570 312 ÷ 2 = 19 094 469 072 551 918 029 785 156 + 0;
  • 19 094 469 072 551 918 029 785 156 ÷ 2 = 9 547 234 536 275 959 014 892 578 + 0;
  • 9 547 234 536 275 959 014 892 578 ÷ 2 = 4 773 617 268 137 979 507 446 289 + 0;
  • 4 773 617 268 137 979 507 446 289 ÷ 2 = 2 386 808 634 068 989 753 723 144 + 1;
  • 2 386 808 634 068 989 753 723 144 ÷ 2 = 1 193 404 317 034 494 876 861 572 + 0;
  • 1 193 404 317 034 494 876 861 572 ÷ 2 = 596 702 158 517 247 438 430 786 + 0;
  • 596 702 158 517 247 438 430 786 ÷ 2 = 298 351 079 258 623 719 215 393 + 0;
  • 298 351 079 258 623 719 215 393 ÷ 2 = 149 175 539 629 311 859 607 696 + 1;
  • 149 175 539 629 311 859 607 696 ÷ 2 = 74 587 769 814 655 929 803 848 + 0;
  • 74 587 769 814 655 929 803 848 ÷ 2 = 37 293 884 907 327 964 901 924 + 0;
  • 37 293 884 907 327 964 901 924 ÷ 2 = 18 646 942 453 663 982 450 962 + 0;
  • 18 646 942 453 663 982 450 962 ÷ 2 = 9 323 471 226 831 991 225 481 + 0;
  • 9 323 471 226 831 991 225 481 ÷ 2 = 4 661 735 613 415 995 612 740 + 1;
  • 4 661 735 613 415 995 612 740 ÷ 2 = 2 330 867 806 707 997 806 370 + 0;
  • 2 330 867 806 707 997 806 370 ÷ 2 = 1 165 433 903 353 998 903 185 + 0;
  • 1 165 433 903 353 998 903 185 ÷ 2 = 582 716 951 676 999 451 592 + 1;
  • 582 716 951 676 999 451 592 ÷ 2 = 291 358 475 838 499 725 796 + 0;
  • 291 358 475 838 499 725 796 ÷ 2 = 145 679 237 919 249 862 898 + 0;
  • 145 679 237 919 249 862 898 ÷ 2 = 72 839 618 959 624 931 449 + 0;
  • 72 839 618 959 624 931 449 ÷ 2 = 36 419 809 479 812 465 724 + 1;
  • 36 419 809 479 812 465 724 ÷ 2 = 18 209 904 739 906 232 862 + 0;
  • 18 209 904 739 906 232 862 ÷ 2 = 9 104 952 369 953 116 431 + 0;
  • 9 104 952 369 953 116 431 ÷ 2 = 4 552 476 184 976 558 215 + 1;
  • 4 552 476 184 976 558 215 ÷ 2 = 2 276 238 092 488 279 107 + 1;
  • 2 276 238 092 488 279 107 ÷ 2 = 1 138 119 046 244 139 553 + 1;
  • 1 138 119 046 244 139 553 ÷ 2 = 569 059 523 122 069 776 + 1;
  • 569 059 523 122 069 776 ÷ 2 = 284 529 761 561 034 888 + 0;
  • 284 529 761 561 034 888 ÷ 2 = 142 264 880 780 517 444 + 0;
  • 142 264 880 780 517 444 ÷ 2 = 71 132 440 390 258 722 + 0;
  • 71 132 440 390 258 722 ÷ 2 = 35 566 220 195 129 361 + 0;
  • 35 566 220 195 129 361 ÷ 2 = 17 783 110 097 564 680 + 1;
  • 17 783 110 097 564 680 ÷ 2 = 8 891 555 048 782 340 + 0;
  • 8 891 555 048 782 340 ÷ 2 = 4 445 777 524 391 170 + 0;
  • 4 445 777 524 391 170 ÷ 2 = 2 222 888 762 195 585 + 0;
  • 2 222 888 762 195 585 ÷ 2 = 1 111 444 381 097 792 + 1;
  • 1 111 444 381 097 792 ÷ 2 = 555 722 190 548 896 + 0;
  • 555 722 190 548 896 ÷ 2 = 277 861 095 274 448 + 0;
  • 277 861 095 274 448 ÷ 2 = 138 930 547 637 224 + 0;
  • 138 930 547 637 224 ÷ 2 = 69 465 273 818 612 + 0;
  • 69 465 273 818 612 ÷ 2 = 34 732 636 909 306 + 0;
  • 34 732 636 909 306 ÷ 2 = 17 366 318 454 653 + 0;
  • 17 366 318 454 653 ÷ 2 = 8 683 159 227 326 + 1;
  • 8 683 159 227 326 ÷ 2 = 4 341 579 613 663 + 0;
  • 4 341 579 613 663 ÷ 2 = 2 170 789 806 831 + 1;
  • 2 170 789 806 831 ÷ 2 = 1 085 394 903 415 + 1;
  • 1 085 394 903 415 ÷ 2 = 542 697 451 707 + 1;
  • 542 697 451 707 ÷ 2 = 271 348 725 853 + 1;
  • 271 348 725 853 ÷ 2 = 135 674 362 926 + 1;
  • 135 674 362 926 ÷ 2 = 67 837 181 463 + 0;
  • 67 837 181 463 ÷ 2 = 33 918 590 731 + 1;
  • 33 918 590 731 ÷ 2 = 16 959 295 365 + 1;
  • 16 959 295 365 ÷ 2 = 8 479 647 682 + 1;
  • 8 479 647 682 ÷ 2 = 4 239 823 841 + 0;
  • 4 239 823 841 ÷ 2 = 2 119 911 920 + 1;
  • 2 119 911 920 ÷ 2 = 1 059 955 960 + 0;
  • 1 059 955 960 ÷ 2 = 529 977 980 + 0;
  • 529 977 980 ÷ 2 = 264 988 990 + 0;
  • 264 988 990 ÷ 2 = 132 494 495 + 0;
  • 132 494 495 ÷ 2 = 66 247 247 + 1;
  • 66 247 247 ÷ 2 = 33 123 623 + 1;
  • 33 123 623 ÷ 2 = 16 561 811 + 1;
  • 16 561 811 ÷ 2 = 8 280 905 + 1;
  • 8 280 905 ÷ 2 = 4 140 452 + 1;
  • 4 140 452 ÷ 2 = 2 070 226 + 0;
  • 2 070 226 ÷ 2 = 1 035 113 + 0;
  • 1 035 113 ÷ 2 = 517 556 + 1;
  • 517 556 ÷ 2 = 258 778 + 0;
  • 258 778 ÷ 2 = 129 389 + 0;
  • 129 389 ÷ 2 = 64 694 + 1;
  • 64 694 ÷ 2 = 32 347 + 0;
  • 32 347 ÷ 2 = 16 173 + 1;
  • 16 173 ÷ 2 = 8 086 + 1;
  • 8 086 ÷ 2 = 4 043 + 0;
  • 4 043 ÷ 2 = 2 021 + 1;
  • 2 021 ÷ 2 = 1 010 + 1;
  • 1 010 ÷ 2 = 505 + 0;
  • 505 ÷ 2 = 252 + 1;
  • 252 ÷ 2 = 126 + 0;
  • 126 ÷ 2 = 63 + 0;
  • 63 ÷ 2 = 31 + 1;
  • 31 ÷ 2 = 15 + 1;
  • 15 ÷ 2 = 7 + 1;
  • 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.

10 011 001 001 110 099 999 999 999 999 812(10) =


111 1110 0101 1011 0100 1001 1111 0000 1011 1011 1110 1000 0001 0001 0000 1111 0010 0010 0100 0010 0010 0001 1111 1111 0100 0100(2)


3. Normalize the binary representation of the number.

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


10 011 001 001 110 099 999 999 999 999 812(10) =


111 1110 0101 1011 0100 1001 1111 0000 1011 1011 1110 1000 0001 0001 0000 1111 0010 0010 0100 0010 0010 0001 1111 1111 0100 0100(2) =


111 1110 0101 1011 0100 1001 1111 0000 1011 1011 1110 1000 0001 0001 0000 1111 0010 0010 0100 0010 0010 0001 1111 1111 0100 0100(2) × 20 =


1.1111 1001 0110 1101 0010 0111 1100 0010 1110 1111 1010 0000 0100 0100 0011 1100 1000 1001 0000 1000 1000 0111 1111 1101 0001 00(2) × 2102


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


Mantissa (not normalized):
1.1111 1001 0110 1101 0010 0111 1100 0010 1110 1111 1010 0000 0100 0100 0011 1100 1000 1001 0000 1000 1000 0111 1111 1101 0001 00


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


102 + 2(8-1) - 1 =


(102 + 127)(10) =


229(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;
  • 229 ÷ 2 = 114 + 1;
  • 114 ÷ 2 = 57 + 0;
  • 57 ÷ 2 = 28 + 1;
  • 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) =


229(10) =


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


111 1100 1011 0110 1001 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) =
1110 0101


Mantissa (23 bits) =
111 1100 1011 0110 1001 0011


Decimal number 10 011 001 001 110 099 999 999 999 999 812 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0101 - 111 1100 1011 0110 1001 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