10 000 110 000 000 011 110 010 000 000 482 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 000 110 000 000 011 110 010 000 000 482(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 110 000 000 011 110 010 000 000 482(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 110 000 000 011 110 010 000 000 482 ÷ 2 = 5 000 055 000 000 005 555 005 000 000 241 + 0;
  • 5 000 055 000 000 005 555 005 000 000 241 ÷ 2 = 2 500 027 500 000 002 777 502 500 000 120 + 1;
  • 2 500 027 500 000 002 777 502 500 000 120 ÷ 2 = 1 250 013 750 000 001 388 751 250 000 060 + 0;
  • 1 250 013 750 000 001 388 751 250 000 060 ÷ 2 = 625 006 875 000 000 694 375 625 000 030 + 0;
  • 625 006 875 000 000 694 375 625 000 030 ÷ 2 = 312 503 437 500 000 347 187 812 500 015 + 0;
  • 312 503 437 500 000 347 187 812 500 015 ÷ 2 = 156 251 718 750 000 173 593 906 250 007 + 1;
  • 156 251 718 750 000 173 593 906 250 007 ÷ 2 = 78 125 859 375 000 086 796 953 125 003 + 1;
  • 78 125 859 375 000 086 796 953 125 003 ÷ 2 = 39 062 929 687 500 043 398 476 562 501 + 1;
  • 39 062 929 687 500 043 398 476 562 501 ÷ 2 = 19 531 464 843 750 021 699 238 281 250 + 1;
  • 19 531 464 843 750 021 699 238 281 250 ÷ 2 = 9 765 732 421 875 010 849 619 140 625 + 0;
  • 9 765 732 421 875 010 849 619 140 625 ÷ 2 = 4 882 866 210 937 505 424 809 570 312 + 1;
  • 4 882 866 210 937 505 424 809 570 312 ÷ 2 = 2 441 433 105 468 752 712 404 785 156 + 0;
  • 2 441 433 105 468 752 712 404 785 156 ÷ 2 = 1 220 716 552 734 376 356 202 392 578 + 0;
  • 1 220 716 552 734 376 356 202 392 578 ÷ 2 = 610 358 276 367 188 178 101 196 289 + 0;
  • 610 358 276 367 188 178 101 196 289 ÷ 2 = 305 179 138 183 594 089 050 598 144 + 1;
  • 305 179 138 183 594 089 050 598 144 ÷ 2 = 152 589 569 091 797 044 525 299 072 + 0;
  • 152 589 569 091 797 044 525 299 072 ÷ 2 = 76 294 784 545 898 522 262 649 536 + 0;
  • 76 294 784 545 898 522 262 649 536 ÷ 2 = 38 147 392 272 949 261 131 324 768 + 0;
  • 38 147 392 272 949 261 131 324 768 ÷ 2 = 19 073 696 136 474 630 565 662 384 + 0;
  • 19 073 696 136 474 630 565 662 384 ÷ 2 = 9 536 848 068 237 315 282 831 192 + 0;
  • 9 536 848 068 237 315 282 831 192 ÷ 2 = 4 768 424 034 118 657 641 415 596 + 0;
  • 4 768 424 034 118 657 641 415 596 ÷ 2 = 2 384 212 017 059 328 820 707 798 + 0;
  • 2 384 212 017 059 328 820 707 798 ÷ 2 = 1 192 106 008 529 664 410 353 899 + 0;
  • 1 192 106 008 529 664 410 353 899 ÷ 2 = 596 053 004 264 832 205 176 949 + 1;
  • 596 053 004 264 832 205 176 949 ÷ 2 = 298 026 502 132 416 102 588 474 + 1;
  • 298 026 502 132 416 102 588 474 ÷ 2 = 149 013 251 066 208 051 294 237 + 0;
  • 149 013 251 066 208 051 294 237 ÷ 2 = 74 506 625 533 104 025 647 118 + 1;
  • 74 506 625 533 104 025 647 118 ÷ 2 = 37 253 312 766 552 012 823 559 + 0;
  • 37 253 312 766 552 012 823 559 ÷ 2 = 18 626 656 383 276 006 411 779 + 1;
  • 18 626 656 383 276 006 411 779 ÷ 2 = 9 313 328 191 638 003 205 889 + 1;
  • 9 313 328 191 638 003 205 889 ÷ 2 = 4 656 664 095 819 001 602 944 + 1;
  • 4 656 664 095 819 001 602 944 ÷ 2 = 2 328 332 047 909 500 801 472 + 0;
  • 2 328 332 047 909 500 801 472 ÷ 2 = 1 164 166 023 954 750 400 736 + 0;
  • 1 164 166 023 954 750 400 736 ÷ 2 = 582 083 011 977 375 200 368 + 0;
  • 582 083 011 977 375 200 368 ÷ 2 = 291 041 505 988 687 600 184 + 0;
  • 291 041 505 988 687 600 184 ÷ 2 = 145 520 752 994 343 800 092 + 0;
  • 145 520 752 994 343 800 092 ÷ 2 = 72 760 376 497 171 900 046 + 0;
  • 72 760 376 497 171 900 046 ÷ 2 = 36 380 188 248 585 950 023 + 0;
  • 36 380 188 248 585 950 023 ÷ 2 = 18 190 094 124 292 975 011 + 1;
  • 18 190 094 124 292 975 011 ÷ 2 = 9 095 047 062 146 487 505 + 1;
  • 9 095 047 062 146 487 505 ÷ 2 = 4 547 523 531 073 243 752 + 1;
  • 4 547 523 531 073 243 752 ÷ 2 = 2 273 761 765 536 621 876 + 0;
  • 2 273 761 765 536 621 876 ÷ 2 = 1 136 880 882 768 310 938 + 0;
  • 1 136 880 882 768 310 938 ÷ 2 = 568 440 441 384 155 469 + 0;
  • 568 440 441 384 155 469 ÷ 2 = 284 220 220 692 077 734 + 1;
  • 284 220 220 692 077 734 ÷ 2 = 142 110 110 346 038 867 + 0;
  • 142 110 110 346 038 867 ÷ 2 = 71 055 055 173 019 433 + 1;
  • 71 055 055 173 019 433 ÷ 2 = 35 527 527 586 509 716 + 1;
  • 35 527 527 586 509 716 ÷ 2 = 17 763 763 793 254 858 + 0;
  • 17 763 763 793 254 858 ÷ 2 = 8 881 881 896 627 429 + 0;
  • 8 881 881 896 627 429 ÷ 2 = 4 440 940 948 313 714 + 1;
  • 4 440 940 948 313 714 ÷ 2 = 2 220 470 474 156 857 + 0;
  • 2 220 470 474 156 857 ÷ 2 = 1 110 235 237 078 428 + 1;
  • 1 110 235 237 078 428 ÷ 2 = 555 117 618 539 214 + 0;
  • 555 117 618 539 214 ÷ 2 = 277 558 809 269 607 + 0;
  • 277 558 809 269 607 ÷ 2 = 138 779 404 634 803 + 1;
  • 138 779 404 634 803 ÷ 2 = 69 389 702 317 401 + 1;
  • 69 389 702 317 401 ÷ 2 = 34 694 851 158 700 + 1;
  • 34 694 851 158 700 ÷ 2 = 17 347 425 579 350 + 0;
  • 17 347 425 579 350 ÷ 2 = 8 673 712 789 675 + 0;
  • 8 673 712 789 675 ÷ 2 = 4 336 856 394 837 + 1;
  • 4 336 856 394 837 ÷ 2 = 2 168 428 197 418 + 1;
  • 2 168 428 197 418 ÷ 2 = 1 084 214 098 709 + 0;
  • 1 084 214 098 709 ÷ 2 = 542 107 049 354 + 1;
  • 542 107 049 354 ÷ 2 = 271 053 524 677 + 0;
  • 271 053 524 677 ÷ 2 = 135 526 762 338 + 1;
  • 135 526 762 338 ÷ 2 = 67 763 381 169 + 0;
  • 67 763 381 169 ÷ 2 = 33 881 690 584 + 1;
  • 33 881 690 584 ÷ 2 = 16 940 845 292 + 0;
  • 16 940 845 292 ÷ 2 = 8 470 422 646 + 0;
  • 8 470 422 646 ÷ 2 = 4 235 211 323 + 0;
  • 4 235 211 323 ÷ 2 = 2 117 605 661 + 1;
  • 2 117 605 661 ÷ 2 = 1 058 802 830 + 1;
  • 1 058 802 830 ÷ 2 = 529 401 415 + 0;
  • 529 401 415 ÷ 2 = 264 700 707 + 1;
  • 264 700 707 ÷ 2 = 132 350 353 + 1;
  • 132 350 353 ÷ 2 = 66 175 176 + 1;
  • 66 175 176 ÷ 2 = 33 087 588 + 0;
  • 33 087 588 ÷ 2 = 16 543 794 + 0;
  • 16 543 794 ÷ 2 = 8 271 897 + 0;
  • 8 271 897 ÷ 2 = 4 135 948 + 1;
  • 4 135 948 ÷ 2 = 2 067 974 + 0;
  • 2 067 974 ÷ 2 = 1 033 987 + 0;
  • 1 033 987 ÷ 2 = 516 993 + 1;
  • 516 993 ÷ 2 = 258 496 + 1;
  • 258 496 ÷ 2 = 129 248 + 0;
  • 129 248 ÷ 2 = 64 624 + 0;
  • 64 624 ÷ 2 = 32 312 + 0;
  • 32 312 ÷ 2 = 16 156 + 0;
  • 16 156 ÷ 2 = 8 078 + 0;
  • 8 078 ÷ 2 = 4 039 + 0;
  • 4 039 ÷ 2 = 2 019 + 1;
  • 2 019 ÷ 2 = 1 009 + 1;
  • 1 009 ÷ 2 = 504 + 1;
  • 504 ÷ 2 = 252 + 0;
  • 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 000 110 000 000 011 110 010 000 000 482(10) =


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


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


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


1.1111 1000 1110 0000 0110 0100 0111 0110 0010 1010 1100 1110 0101 0011 0100 0111 0000 0001 1101 0110 0000 0001 0001 0111 1000 10(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 1000 1110 0000 0110 0100 0111 0110 0010 1010 1100 1110 0101 0011 0100 0111 0000 0001 1101 0110 0000 0001 0001 0111 1000 10


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


111 1100 0111 0000 0011 0010


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 0111 0000 0011 0010


Decimal number 10 000 110 000 000 011 110 010 000 000 482 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0101 - 111 1100 0111 0000 0011 0010


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