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

Convert decimal 10 000 100 011 000 000 000 000 000 438(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 000 100 011 000 000 000 000 000 438(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 000 100 011 000 000 000 000 000 438 ÷ 2 = 5 000 050 005 500 000 000 000 000 219 + 0;
  • 5 000 050 005 500 000 000 000 000 219 ÷ 2 = 2 500 025 002 750 000 000 000 000 109 + 1;
  • 2 500 025 002 750 000 000 000 000 109 ÷ 2 = 1 250 012 501 375 000 000 000 000 054 + 1;
  • 1 250 012 501 375 000 000 000 000 054 ÷ 2 = 625 006 250 687 500 000 000 000 027 + 0;
  • 625 006 250 687 500 000 000 000 027 ÷ 2 = 312 503 125 343 750 000 000 000 013 + 1;
  • 312 503 125 343 750 000 000 000 013 ÷ 2 = 156 251 562 671 875 000 000 000 006 + 1;
  • 156 251 562 671 875 000 000 000 006 ÷ 2 = 78 125 781 335 937 500 000 000 003 + 0;
  • 78 125 781 335 937 500 000 000 003 ÷ 2 = 39 062 890 667 968 750 000 000 001 + 1;
  • 39 062 890 667 968 750 000 000 001 ÷ 2 = 19 531 445 333 984 375 000 000 000 + 1;
  • 19 531 445 333 984 375 000 000 000 ÷ 2 = 9 765 722 666 992 187 500 000 000 + 0;
  • 9 765 722 666 992 187 500 000 000 ÷ 2 = 4 882 861 333 496 093 750 000 000 + 0;
  • 4 882 861 333 496 093 750 000 000 ÷ 2 = 2 441 430 666 748 046 875 000 000 + 0;
  • 2 441 430 666 748 046 875 000 000 ÷ 2 = 1 220 715 333 374 023 437 500 000 + 0;
  • 1 220 715 333 374 023 437 500 000 ÷ 2 = 610 357 666 687 011 718 750 000 + 0;
  • 610 357 666 687 011 718 750 000 ÷ 2 = 305 178 833 343 505 859 375 000 + 0;
  • 305 178 833 343 505 859 375 000 ÷ 2 = 152 589 416 671 752 929 687 500 + 0;
  • 152 589 416 671 752 929 687 500 ÷ 2 = 76 294 708 335 876 464 843 750 + 0;
  • 76 294 708 335 876 464 843 750 ÷ 2 = 38 147 354 167 938 232 421 875 + 0;
  • 38 147 354 167 938 232 421 875 ÷ 2 = 19 073 677 083 969 116 210 937 + 1;
  • 19 073 677 083 969 116 210 937 ÷ 2 = 9 536 838 541 984 558 105 468 + 1;
  • 9 536 838 541 984 558 105 468 ÷ 2 = 4 768 419 270 992 279 052 734 + 0;
  • 4 768 419 270 992 279 052 734 ÷ 2 = 2 384 209 635 496 139 526 367 + 0;
  • 2 384 209 635 496 139 526 367 ÷ 2 = 1 192 104 817 748 069 763 183 + 1;
  • 1 192 104 817 748 069 763 183 ÷ 2 = 596 052 408 874 034 881 591 + 1;
  • 596 052 408 874 034 881 591 ÷ 2 = 298 026 204 437 017 440 795 + 1;
  • 298 026 204 437 017 440 795 ÷ 2 = 149 013 102 218 508 720 397 + 1;
  • 149 013 102 218 508 720 397 ÷ 2 = 74 506 551 109 254 360 198 + 1;
  • 74 506 551 109 254 360 198 ÷ 2 = 37 253 275 554 627 180 099 + 0;
  • 37 253 275 554 627 180 099 ÷ 2 = 18 626 637 777 313 590 049 + 1;
  • 18 626 637 777 313 590 049 ÷ 2 = 9 313 318 888 656 795 024 + 1;
  • 9 313 318 888 656 795 024 ÷ 2 = 4 656 659 444 328 397 512 + 0;
  • 4 656 659 444 328 397 512 ÷ 2 = 2 328 329 722 164 198 756 + 0;
  • 2 328 329 722 164 198 756 ÷ 2 = 1 164 164 861 082 099 378 + 0;
  • 1 164 164 861 082 099 378 ÷ 2 = 582 082 430 541 049 689 + 0;
  • 582 082 430 541 049 689 ÷ 2 = 291 041 215 270 524 844 + 1;
  • 291 041 215 270 524 844 ÷ 2 = 145 520 607 635 262 422 + 0;
  • 145 520 607 635 262 422 ÷ 2 = 72 760 303 817 631 211 + 0;
  • 72 760 303 817 631 211 ÷ 2 = 36 380 151 908 815 605 + 1;
  • 36 380 151 908 815 605 ÷ 2 = 18 190 075 954 407 802 + 1;
  • 18 190 075 954 407 802 ÷ 2 = 9 095 037 977 203 901 + 0;
  • 9 095 037 977 203 901 ÷ 2 = 4 547 518 988 601 950 + 1;
  • 4 547 518 988 601 950 ÷ 2 = 2 273 759 494 300 975 + 0;
  • 2 273 759 494 300 975 ÷ 2 = 1 136 879 747 150 487 + 1;
  • 1 136 879 747 150 487 ÷ 2 = 568 439 873 575 243 + 1;
  • 568 439 873 575 243 ÷ 2 = 284 219 936 787 621 + 1;
  • 284 219 936 787 621 ÷ 2 = 142 109 968 393 810 + 1;
  • 142 109 968 393 810 ÷ 2 = 71 054 984 196 905 + 0;
  • 71 054 984 196 905 ÷ 2 = 35 527 492 098 452 + 1;
  • 35 527 492 098 452 ÷ 2 = 17 763 746 049 226 + 0;
  • 17 763 746 049 226 ÷ 2 = 8 881 873 024 613 + 0;
  • 8 881 873 024 613 ÷ 2 = 4 440 936 512 306 + 1;
  • 4 440 936 512 306 ÷ 2 = 2 220 468 256 153 + 0;
  • 2 220 468 256 153 ÷ 2 = 1 110 234 128 076 + 1;
  • 1 110 234 128 076 ÷ 2 = 555 117 064 038 + 0;
  • 555 117 064 038 ÷ 2 = 277 558 532 019 + 0;
  • 277 558 532 019 ÷ 2 = 138 779 266 009 + 1;
  • 138 779 266 009 ÷ 2 = 69 389 633 004 + 1;
  • 69 389 633 004 ÷ 2 = 34 694 816 502 + 0;
  • 34 694 816 502 ÷ 2 = 17 347 408 251 + 0;
  • 17 347 408 251 ÷ 2 = 8 673 704 125 + 1;
  • 8 673 704 125 ÷ 2 = 4 336 852 062 + 1;
  • 4 336 852 062 ÷ 2 = 2 168 426 031 + 0;
  • 2 168 426 031 ÷ 2 = 1 084 213 015 + 1;
  • 1 084 213 015 ÷ 2 = 542 106 507 + 1;
  • 542 106 507 ÷ 2 = 271 053 253 + 1;
  • 271 053 253 ÷ 2 = 135 526 626 + 1;
  • 135 526 626 ÷ 2 = 67 763 313 + 0;
  • 67 763 313 ÷ 2 = 33 881 656 + 1;
  • 33 881 656 ÷ 2 = 16 940 828 + 0;
  • 16 940 828 ÷ 2 = 8 470 414 + 0;
  • 8 470 414 ÷ 2 = 4 235 207 + 0;
  • 4 235 207 ÷ 2 = 2 117 603 + 1;
  • 2 117 603 ÷ 2 = 1 058 801 + 1;
  • 1 058 801 ÷ 2 = 529 400 + 1;
  • 529 400 ÷ 2 = 264 700 + 0;
  • 264 700 ÷ 2 = 132 350 + 0;
  • 132 350 ÷ 2 = 66 175 + 0;
  • 66 175 ÷ 2 = 33 087 + 1;
  • 33 087 ÷ 2 = 16 543 + 1;
  • 16 543 ÷ 2 = 8 271 + 1;
  • 8 271 ÷ 2 = 4 135 + 1;
  • 4 135 ÷ 2 = 2 067 + 1;
  • 2 067 ÷ 2 = 1 033 + 1;
  • 1 033 ÷ 2 = 516 + 1;
  • 516 ÷ 2 = 258 + 0;
  • 258 ÷ 2 = 129 + 0;
  • 129 ÷ 2 = 64 + 1;
  • 64 ÷ 2 = 32 + 0;
  • 32 ÷ 2 = 16 + 0;
  • 16 ÷ 2 = 8 + 0;
  • 8 ÷ 2 = 4 + 0;
  • 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.

10 000 100 011 000 000 000 000 000 438(10) =


10 0000 0100 1111 1110 0011 1000 1011 1101 1001 1001 0100 1011 1101 0110 0100 0011 0111 1100 1100 0000 0001 1011 0110(2)


3. Normalize the binary representation of the number.

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


10 000 100 011 000 000 000 000 000 438(10) =


10 0000 0100 1111 1110 0011 1000 1011 1101 1001 1001 0100 1011 1101 0110 0100 0011 0111 1100 1100 0000 0001 1011 0110(2) =


10 0000 0100 1111 1110 0011 1000 1011 1101 1001 1001 0100 1011 1101 0110 0100 0011 0111 1100 1100 0000 0001 1011 0110(2) × 20 =


1.0000 0010 0111 1111 0001 1100 0101 1110 1100 1100 1010 0101 1110 1011 0010 0001 1011 1110 0110 0000 0000 1101 1011 0(2) × 293


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


Mantissa (not normalized):
1.0000 0010 0111 1111 0001 1100 0101 1110 1100 1100 1010 0101 1110 1011 0010 0001 1011 1110 0110 0000 0000 1101 1011 0


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


93 + 2(8-1) - 1 =


(93 + 127)(10) =


220(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;
  • 220 ÷ 2 = 110 + 0;
  • 110 ÷ 2 = 55 + 0;
  • 55 ÷ 2 = 27 + 1;
  • 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) =


220(10) =


1101 1100(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. 000 0001 0011 1111 1000 1110 00 1011 1101 1001 1001 0100 1011 1101 0110 0100 0011 0111 1100 1100 0000 0001 1011 0110 =


000 0001 0011 1111 1000 1110


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 1100


Mantissa (23 bits) =
000 0001 0011 1111 1000 1110


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

0 - 1101 1100 - 000 0001 0011 1111 1000 1110


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