10 101 010 100 000 001 000 001 000 001 176 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 101 010 100 000 001 000 001 000 001 176(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 101 010 100 000 001 000 001 000 001 176(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 101 010 100 000 001 000 001 000 001 176 ÷ 2 = 5 050 505 050 000 000 500 000 500 000 588 + 0;
  • 5 050 505 050 000 000 500 000 500 000 588 ÷ 2 = 2 525 252 525 000 000 250 000 250 000 294 + 0;
  • 2 525 252 525 000 000 250 000 250 000 294 ÷ 2 = 1 262 626 262 500 000 125 000 125 000 147 + 0;
  • 1 262 626 262 500 000 125 000 125 000 147 ÷ 2 = 631 313 131 250 000 062 500 062 500 073 + 1;
  • 631 313 131 250 000 062 500 062 500 073 ÷ 2 = 315 656 565 625 000 031 250 031 250 036 + 1;
  • 315 656 565 625 000 031 250 031 250 036 ÷ 2 = 157 828 282 812 500 015 625 015 625 018 + 0;
  • 157 828 282 812 500 015 625 015 625 018 ÷ 2 = 78 914 141 406 250 007 812 507 812 509 + 0;
  • 78 914 141 406 250 007 812 507 812 509 ÷ 2 = 39 457 070 703 125 003 906 253 906 254 + 1;
  • 39 457 070 703 125 003 906 253 906 254 ÷ 2 = 19 728 535 351 562 501 953 126 953 127 + 0;
  • 19 728 535 351 562 501 953 126 953 127 ÷ 2 = 9 864 267 675 781 250 976 563 476 563 + 1;
  • 9 864 267 675 781 250 976 563 476 563 ÷ 2 = 4 932 133 837 890 625 488 281 738 281 + 1;
  • 4 932 133 837 890 625 488 281 738 281 ÷ 2 = 2 466 066 918 945 312 744 140 869 140 + 1;
  • 2 466 066 918 945 312 744 140 869 140 ÷ 2 = 1 233 033 459 472 656 372 070 434 570 + 0;
  • 1 233 033 459 472 656 372 070 434 570 ÷ 2 = 616 516 729 736 328 186 035 217 285 + 0;
  • 616 516 729 736 328 186 035 217 285 ÷ 2 = 308 258 364 868 164 093 017 608 642 + 1;
  • 308 258 364 868 164 093 017 608 642 ÷ 2 = 154 129 182 434 082 046 508 804 321 + 0;
  • 154 129 182 434 082 046 508 804 321 ÷ 2 = 77 064 591 217 041 023 254 402 160 + 1;
  • 77 064 591 217 041 023 254 402 160 ÷ 2 = 38 532 295 608 520 511 627 201 080 + 0;
  • 38 532 295 608 520 511 627 201 080 ÷ 2 = 19 266 147 804 260 255 813 600 540 + 0;
  • 19 266 147 804 260 255 813 600 540 ÷ 2 = 9 633 073 902 130 127 906 800 270 + 0;
  • 9 633 073 902 130 127 906 800 270 ÷ 2 = 4 816 536 951 065 063 953 400 135 + 0;
  • 4 816 536 951 065 063 953 400 135 ÷ 2 = 2 408 268 475 532 531 976 700 067 + 1;
  • 2 408 268 475 532 531 976 700 067 ÷ 2 = 1 204 134 237 766 265 988 350 033 + 1;
  • 1 204 134 237 766 265 988 350 033 ÷ 2 = 602 067 118 883 132 994 175 016 + 1;
  • 602 067 118 883 132 994 175 016 ÷ 2 = 301 033 559 441 566 497 087 508 + 0;
  • 301 033 559 441 566 497 087 508 ÷ 2 = 150 516 779 720 783 248 543 754 + 0;
  • 150 516 779 720 783 248 543 754 ÷ 2 = 75 258 389 860 391 624 271 877 + 0;
  • 75 258 389 860 391 624 271 877 ÷ 2 = 37 629 194 930 195 812 135 938 + 1;
  • 37 629 194 930 195 812 135 938 ÷ 2 = 18 814 597 465 097 906 067 969 + 0;
  • 18 814 597 465 097 906 067 969 ÷ 2 = 9 407 298 732 548 953 033 984 + 1;
  • 9 407 298 732 548 953 033 984 ÷ 2 = 4 703 649 366 274 476 516 992 + 0;
  • 4 703 649 366 274 476 516 992 ÷ 2 = 2 351 824 683 137 238 258 496 + 0;
  • 2 351 824 683 137 238 258 496 ÷ 2 = 1 175 912 341 568 619 129 248 + 0;
  • 1 175 912 341 568 619 129 248 ÷ 2 = 587 956 170 784 309 564 624 + 0;
  • 587 956 170 784 309 564 624 ÷ 2 = 293 978 085 392 154 782 312 + 0;
  • 293 978 085 392 154 782 312 ÷ 2 = 146 989 042 696 077 391 156 + 0;
  • 146 989 042 696 077 391 156 ÷ 2 = 73 494 521 348 038 695 578 + 0;
  • 73 494 521 348 038 695 578 ÷ 2 = 36 747 260 674 019 347 789 + 0;
  • 36 747 260 674 019 347 789 ÷ 2 = 18 373 630 337 009 673 894 + 1;
  • 18 373 630 337 009 673 894 ÷ 2 = 9 186 815 168 504 836 947 + 0;
  • 9 186 815 168 504 836 947 ÷ 2 = 4 593 407 584 252 418 473 + 1;
  • 4 593 407 584 252 418 473 ÷ 2 = 2 296 703 792 126 209 236 + 1;
  • 2 296 703 792 126 209 236 ÷ 2 = 1 148 351 896 063 104 618 + 0;
  • 1 148 351 896 063 104 618 ÷ 2 = 574 175 948 031 552 309 + 0;
  • 574 175 948 031 552 309 ÷ 2 = 287 087 974 015 776 154 + 1;
  • 287 087 974 015 776 154 ÷ 2 = 143 543 987 007 888 077 + 0;
  • 143 543 987 007 888 077 ÷ 2 = 71 771 993 503 944 038 + 1;
  • 71 771 993 503 944 038 ÷ 2 = 35 885 996 751 972 019 + 0;
  • 35 885 996 751 972 019 ÷ 2 = 17 942 998 375 986 009 + 1;
  • 17 942 998 375 986 009 ÷ 2 = 8 971 499 187 993 004 + 1;
  • 8 971 499 187 993 004 ÷ 2 = 4 485 749 593 996 502 + 0;
  • 4 485 749 593 996 502 ÷ 2 = 2 242 874 796 998 251 + 0;
  • 2 242 874 796 998 251 ÷ 2 = 1 121 437 398 499 125 + 1;
  • 1 121 437 398 499 125 ÷ 2 = 560 718 699 249 562 + 1;
  • 560 718 699 249 562 ÷ 2 = 280 359 349 624 781 + 0;
  • 280 359 349 624 781 ÷ 2 = 140 179 674 812 390 + 1;
  • 140 179 674 812 390 ÷ 2 = 70 089 837 406 195 + 0;
  • 70 089 837 406 195 ÷ 2 = 35 044 918 703 097 + 1;
  • 35 044 918 703 097 ÷ 2 = 17 522 459 351 548 + 1;
  • 17 522 459 351 548 ÷ 2 = 8 761 229 675 774 + 0;
  • 8 761 229 675 774 ÷ 2 = 4 380 614 837 887 + 0;
  • 4 380 614 837 887 ÷ 2 = 2 190 307 418 943 + 1;
  • 2 190 307 418 943 ÷ 2 = 1 095 153 709 471 + 1;
  • 1 095 153 709 471 ÷ 2 = 547 576 854 735 + 1;
  • 547 576 854 735 ÷ 2 = 273 788 427 367 + 1;
  • 273 788 427 367 ÷ 2 = 136 894 213 683 + 1;
  • 136 894 213 683 ÷ 2 = 68 447 106 841 + 1;
  • 68 447 106 841 ÷ 2 = 34 223 553 420 + 1;
  • 34 223 553 420 ÷ 2 = 17 111 776 710 + 0;
  • 17 111 776 710 ÷ 2 = 8 555 888 355 + 0;
  • 8 555 888 355 ÷ 2 = 4 277 944 177 + 1;
  • 4 277 944 177 ÷ 2 = 2 138 972 088 + 1;
  • 2 138 972 088 ÷ 2 = 1 069 486 044 + 0;
  • 1 069 486 044 ÷ 2 = 534 743 022 + 0;
  • 534 743 022 ÷ 2 = 267 371 511 + 0;
  • 267 371 511 ÷ 2 = 133 685 755 + 1;
  • 133 685 755 ÷ 2 = 66 842 877 + 1;
  • 66 842 877 ÷ 2 = 33 421 438 + 1;
  • 33 421 438 ÷ 2 = 16 710 719 + 0;
  • 16 710 719 ÷ 2 = 8 355 359 + 1;
  • 8 355 359 ÷ 2 = 4 177 679 + 1;
  • 4 177 679 ÷ 2 = 2 088 839 + 1;
  • 2 088 839 ÷ 2 = 1 044 419 + 1;
  • 1 044 419 ÷ 2 = 522 209 + 1;
  • 522 209 ÷ 2 = 261 104 + 1;
  • 261 104 ÷ 2 = 130 552 + 0;
  • 130 552 ÷ 2 = 65 276 + 0;
  • 65 276 ÷ 2 = 32 638 + 0;
  • 32 638 ÷ 2 = 16 319 + 0;
  • 16 319 ÷ 2 = 8 159 + 1;
  • 8 159 ÷ 2 = 4 079 + 1;
  • 4 079 ÷ 2 = 2 039 + 1;
  • 2 039 ÷ 2 = 1 019 + 1;
  • 1 019 ÷ 2 = 509 + 1;
  • 509 ÷ 2 = 254 + 1;
  • 254 ÷ 2 = 127 + 0;
  • 127 ÷ 2 = 63 + 1;
  • 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 101 010 100 000 001 000 001 000 001 176(10) =


111 1111 0111 1110 0001 1111 1011 1000 1100 1111 1110 0110 1011 0011 0101 0011 0100 0000 0010 1000 1110 0001 0100 1110 1001 1000(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 101 010 100 000 001 000 001 000 001 176(10) =


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


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


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


111 1110 1111 1100 0011 1111


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 1110 1111 1100 0011 1111


Decimal number 10 101 010 100 000 001 000 001 000 001 176 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0101 - 111 1110 1111 1100 0011 1111


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