1 011 111 010 009 999 999 999 999 549 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 011 111 010 009 999 999 999 999 549(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 011 111 010 009 999 999 999 999 549(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 011 111 010 009 999 999 999 999 549 ÷ 2 = 505 555 505 004 999 999 999 999 774 + 1;
  • 505 555 505 004 999 999 999 999 774 ÷ 2 = 252 777 752 502 499 999 999 999 887 + 0;
  • 252 777 752 502 499 999 999 999 887 ÷ 2 = 126 388 876 251 249 999 999 999 943 + 1;
  • 126 388 876 251 249 999 999 999 943 ÷ 2 = 63 194 438 125 624 999 999 999 971 + 1;
  • 63 194 438 125 624 999 999 999 971 ÷ 2 = 31 597 219 062 812 499 999 999 985 + 1;
  • 31 597 219 062 812 499 999 999 985 ÷ 2 = 15 798 609 531 406 249 999 999 992 + 1;
  • 15 798 609 531 406 249 999 999 992 ÷ 2 = 7 899 304 765 703 124 999 999 996 + 0;
  • 7 899 304 765 703 124 999 999 996 ÷ 2 = 3 949 652 382 851 562 499 999 998 + 0;
  • 3 949 652 382 851 562 499 999 998 ÷ 2 = 1 974 826 191 425 781 249 999 999 + 0;
  • 1 974 826 191 425 781 249 999 999 ÷ 2 = 987 413 095 712 890 624 999 999 + 1;
  • 987 413 095 712 890 624 999 999 ÷ 2 = 493 706 547 856 445 312 499 999 + 1;
  • 493 706 547 856 445 312 499 999 ÷ 2 = 246 853 273 928 222 656 249 999 + 1;
  • 246 853 273 928 222 656 249 999 ÷ 2 = 123 426 636 964 111 328 124 999 + 1;
  • 123 426 636 964 111 328 124 999 ÷ 2 = 61 713 318 482 055 664 062 499 + 1;
  • 61 713 318 482 055 664 062 499 ÷ 2 = 30 856 659 241 027 832 031 249 + 1;
  • 30 856 659 241 027 832 031 249 ÷ 2 = 15 428 329 620 513 916 015 624 + 1;
  • 15 428 329 620 513 916 015 624 ÷ 2 = 7 714 164 810 256 958 007 812 + 0;
  • 7 714 164 810 256 958 007 812 ÷ 2 = 3 857 082 405 128 479 003 906 + 0;
  • 3 857 082 405 128 479 003 906 ÷ 2 = 1 928 541 202 564 239 501 953 + 0;
  • 1 928 541 202 564 239 501 953 ÷ 2 = 964 270 601 282 119 750 976 + 1;
  • 964 270 601 282 119 750 976 ÷ 2 = 482 135 300 641 059 875 488 + 0;
  • 482 135 300 641 059 875 488 ÷ 2 = 241 067 650 320 529 937 744 + 0;
  • 241 067 650 320 529 937 744 ÷ 2 = 120 533 825 160 264 968 872 + 0;
  • 120 533 825 160 264 968 872 ÷ 2 = 60 266 912 580 132 484 436 + 0;
  • 60 266 912 580 132 484 436 ÷ 2 = 30 133 456 290 066 242 218 + 0;
  • 30 133 456 290 066 242 218 ÷ 2 = 15 066 728 145 033 121 109 + 0;
  • 15 066 728 145 033 121 109 ÷ 2 = 7 533 364 072 516 560 554 + 1;
  • 7 533 364 072 516 560 554 ÷ 2 = 3 766 682 036 258 280 277 + 0;
  • 3 766 682 036 258 280 277 ÷ 2 = 1 883 341 018 129 140 138 + 1;
  • 1 883 341 018 129 140 138 ÷ 2 = 941 670 509 064 570 069 + 0;
  • 941 670 509 064 570 069 ÷ 2 = 470 835 254 532 285 034 + 1;
  • 470 835 254 532 285 034 ÷ 2 = 235 417 627 266 142 517 + 0;
  • 235 417 627 266 142 517 ÷ 2 = 117 708 813 633 071 258 + 1;
  • 117 708 813 633 071 258 ÷ 2 = 58 854 406 816 535 629 + 0;
  • 58 854 406 816 535 629 ÷ 2 = 29 427 203 408 267 814 + 1;
  • 29 427 203 408 267 814 ÷ 2 = 14 713 601 704 133 907 + 0;
  • 14 713 601 704 133 907 ÷ 2 = 7 356 800 852 066 953 + 1;
  • 7 356 800 852 066 953 ÷ 2 = 3 678 400 426 033 476 + 1;
  • 3 678 400 426 033 476 ÷ 2 = 1 839 200 213 016 738 + 0;
  • 1 839 200 213 016 738 ÷ 2 = 919 600 106 508 369 + 0;
  • 919 600 106 508 369 ÷ 2 = 459 800 053 254 184 + 1;
  • 459 800 053 254 184 ÷ 2 = 229 900 026 627 092 + 0;
  • 229 900 026 627 092 ÷ 2 = 114 950 013 313 546 + 0;
  • 114 950 013 313 546 ÷ 2 = 57 475 006 656 773 + 0;
  • 57 475 006 656 773 ÷ 2 = 28 737 503 328 386 + 1;
  • 28 737 503 328 386 ÷ 2 = 14 368 751 664 193 + 0;
  • 14 368 751 664 193 ÷ 2 = 7 184 375 832 096 + 1;
  • 7 184 375 832 096 ÷ 2 = 3 592 187 916 048 + 0;
  • 3 592 187 916 048 ÷ 2 = 1 796 093 958 024 + 0;
  • 1 796 093 958 024 ÷ 2 = 898 046 979 012 + 0;
  • 898 046 979 012 ÷ 2 = 449 023 489 506 + 0;
  • 449 023 489 506 ÷ 2 = 224 511 744 753 + 0;
  • 224 511 744 753 ÷ 2 = 112 255 872 376 + 1;
  • 112 255 872 376 ÷ 2 = 56 127 936 188 + 0;
  • 56 127 936 188 ÷ 2 = 28 063 968 094 + 0;
  • 28 063 968 094 ÷ 2 = 14 031 984 047 + 0;
  • 14 031 984 047 ÷ 2 = 7 015 992 023 + 1;
  • 7 015 992 023 ÷ 2 = 3 507 996 011 + 1;
  • 3 507 996 011 ÷ 2 = 1 753 998 005 + 1;
  • 1 753 998 005 ÷ 2 = 876 999 002 + 1;
  • 876 999 002 ÷ 2 = 438 499 501 + 0;
  • 438 499 501 ÷ 2 = 219 249 750 + 1;
  • 219 249 750 ÷ 2 = 109 624 875 + 0;
  • 109 624 875 ÷ 2 = 54 812 437 + 1;
  • 54 812 437 ÷ 2 = 27 406 218 + 1;
  • 27 406 218 ÷ 2 = 13 703 109 + 0;
  • 13 703 109 ÷ 2 = 6 851 554 + 1;
  • 6 851 554 ÷ 2 = 3 425 777 + 0;
  • 3 425 777 ÷ 2 = 1 712 888 + 1;
  • 1 712 888 ÷ 2 = 856 444 + 0;
  • 856 444 ÷ 2 = 428 222 + 0;
  • 428 222 ÷ 2 = 214 111 + 0;
  • 214 111 ÷ 2 = 107 055 + 1;
  • 107 055 ÷ 2 = 53 527 + 1;
  • 53 527 ÷ 2 = 26 763 + 1;
  • 26 763 ÷ 2 = 13 381 + 1;
  • 13 381 ÷ 2 = 6 690 + 1;
  • 6 690 ÷ 2 = 3 345 + 0;
  • 3 345 ÷ 2 = 1 672 + 1;
  • 1 672 ÷ 2 = 836 + 0;
  • 836 ÷ 2 = 418 + 0;
  • 418 ÷ 2 = 209 + 0;
  • 209 ÷ 2 = 104 + 1;
  • 104 ÷ 2 = 52 + 0;
  • 52 ÷ 2 = 26 + 0;
  • 26 ÷ 2 = 13 + 0;
  • 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 011 111 010 009 999 999 999 999 549(10) =


11 0100 0100 0101 1111 0001 0101 1010 1111 0001 0000 0101 0001 0011 0101 0101 0100 0000 1000 1111 1110 0011 1101(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 011 111 010 009 999 999 999 999 549(10) =


11 0100 0100 0101 1111 0001 0101 1010 1111 0001 0000 0101 0001 0011 0101 0101 0100 0000 1000 1111 1110 0011 1101(2) =


11 0100 0100 0101 1111 0001 0101 1010 1111 0001 0000 0101 0001 0011 0101 0101 0100 0000 1000 1111 1110 0011 1101(2) × 20 =


1.1010 0010 0010 1111 1000 1010 1101 0111 1000 1000 0010 1000 1001 1010 1010 1010 0000 0100 0111 1111 0001 1110 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.1010 0010 0010 1111 1000 1010 1101 0111 1000 1000 0010 1000 1001 1010 1010 1010 0000 0100 0111 1111 0001 1110 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. 101 0001 0001 0111 1100 0101 01 1010 1111 0001 0000 0101 0001 0011 0101 0101 0100 0000 1000 1111 1110 0011 1101 =


101 0001 0001 0111 1100 0101


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) =
101 0001 0001 0111 1100 0101


Decimal number 1 011 111 010 009 999 999 999 999 549 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1000 - 101 0001 0001 0111 1100 0101


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