176 182 853 028 894 470 526 211 079 437 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 176 182 853 028 894 470 526 211 079 437(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
176 182 853 028 894 470 526 211 079 437(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;
  • 176 182 853 028 894 470 526 211 079 437 ÷ 2 = 88 091 426 514 447 235 263 105 539 718 + 1;
  • 88 091 426 514 447 235 263 105 539 718 ÷ 2 = 44 045 713 257 223 617 631 552 769 859 + 0;
  • 44 045 713 257 223 617 631 552 769 859 ÷ 2 = 22 022 856 628 611 808 815 776 384 929 + 1;
  • 22 022 856 628 611 808 815 776 384 929 ÷ 2 = 11 011 428 314 305 904 407 888 192 464 + 1;
  • 11 011 428 314 305 904 407 888 192 464 ÷ 2 = 5 505 714 157 152 952 203 944 096 232 + 0;
  • 5 505 714 157 152 952 203 944 096 232 ÷ 2 = 2 752 857 078 576 476 101 972 048 116 + 0;
  • 2 752 857 078 576 476 101 972 048 116 ÷ 2 = 1 376 428 539 288 238 050 986 024 058 + 0;
  • 1 376 428 539 288 238 050 986 024 058 ÷ 2 = 688 214 269 644 119 025 493 012 029 + 0;
  • 688 214 269 644 119 025 493 012 029 ÷ 2 = 344 107 134 822 059 512 746 506 014 + 1;
  • 344 107 134 822 059 512 746 506 014 ÷ 2 = 172 053 567 411 029 756 373 253 007 + 0;
  • 172 053 567 411 029 756 373 253 007 ÷ 2 = 86 026 783 705 514 878 186 626 503 + 1;
  • 86 026 783 705 514 878 186 626 503 ÷ 2 = 43 013 391 852 757 439 093 313 251 + 1;
  • 43 013 391 852 757 439 093 313 251 ÷ 2 = 21 506 695 926 378 719 546 656 625 + 1;
  • 21 506 695 926 378 719 546 656 625 ÷ 2 = 10 753 347 963 189 359 773 328 312 + 1;
  • 10 753 347 963 189 359 773 328 312 ÷ 2 = 5 376 673 981 594 679 886 664 156 + 0;
  • 5 376 673 981 594 679 886 664 156 ÷ 2 = 2 688 336 990 797 339 943 332 078 + 0;
  • 2 688 336 990 797 339 943 332 078 ÷ 2 = 1 344 168 495 398 669 971 666 039 + 0;
  • 1 344 168 495 398 669 971 666 039 ÷ 2 = 672 084 247 699 334 985 833 019 + 1;
  • 672 084 247 699 334 985 833 019 ÷ 2 = 336 042 123 849 667 492 916 509 + 1;
  • 336 042 123 849 667 492 916 509 ÷ 2 = 168 021 061 924 833 746 458 254 + 1;
  • 168 021 061 924 833 746 458 254 ÷ 2 = 84 010 530 962 416 873 229 127 + 0;
  • 84 010 530 962 416 873 229 127 ÷ 2 = 42 005 265 481 208 436 614 563 + 1;
  • 42 005 265 481 208 436 614 563 ÷ 2 = 21 002 632 740 604 218 307 281 + 1;
  • 21 002 632 740 604 218 307 281 ÷ 2 = 10 501 316 370 302 109 153 640 + 1;
  • 10 501 316 370 302 109 153 640 ÷ 2 = 5 250 658 185 151 054 576 820 + 0;
  • 5 250 658 185 151 054 576 820 ÷ 2 = 2 625 329 092 575 527 288 410 + 0;
  • 2 625 329 092 575 527 288 410 ÷ 2 = 1 312 664 546 287 763 644 205 + 0;
  • 1 312 664 546 287 763 644 205 ÷ 2 = 656 332 273 143 881 822 102 + 1;
  • 656 332 273 143 881 822 102 ÷ 2 = 328 166 136 571 940 911 051 + 0;
  • 328 166 136 571 940 911 051 ÷ 2 = 164 083 068 285 970 455 525 + 1;
  • 164 083 068 285 970 455 525 ÷ 2 = 82 041 534 142 985 227 762 + 1;
  • 82 041 534 142 985 227 762 ÷ 2 = 41 020 767 071 492 613 881 + 0;
  • 41 020 767 071 492 613 881 ÷ 2 = 20 510 383 535 746 306 940 + 1;
  • 20 510 383 535 746 306 940 ÷ 2 = 10 255 191 767 873 153 470 + 0;
  • 10 255 191 767 873 153 470 ÷ 2 = 5 127 595 883 936 576 735 + 0;
  • 5 127 595 883 936 576 735 ÷ 2 = 2 563 797 941 968 288 367 + 1;
  • 2 563 797 941 968 288 367 ÷ 2 = 1 281 898 970 984 144 183 + 1;
  • 1 281 898 970 984 144 183 ÷ 2 = 640 949 485 492 072 091 + 1;
  • 640 949 485 492 072 091 ÷ 2 = 320 474 742 746 036 045 + 1;
  • 320 474 742 746 036 045 ÷ 2 = 160 237 371 373 018 022 + 1;
  • 160 237 371 373 018 022 ÷ 2 = 80 118 685 686 509 011 + 0;
  • 80 118 685 686 509 011 ÷ 2 = 40 059 342 843 254 505 + 1;
  • 40 059 342 843 254 505 ÷ 2 = 20 029 671 421 627 252 + 1;
  • 20 029 671 421 627 252 ÷ 2 = 10 014 835 710 813 626 + 0;
  • 10 014 835 710 813 626 ÷ 2 = 5 007 417 855 406 813 + 0;
  • 5 007 417 855 406 813 ÷ 2 = 2 503 708 927 703 406 + 1;
  • 2 503 708 927 703 406 ÷ 2 = 1 251 854 463 851 703 + 0;
  • 1 251 854 463 851 703 ÷ 2 = 625 927 231 925 851 + 1;
  • 625 927 231 925 851 ÷ 2 = 312 963 615 962 925 + 1;
  • 312 963 615 962 925 ÷ 2 = 156 481 807 981 462 + 1;
  • 156 481 807 981 462 ÷ 2 = 78 240 903 990 731 + 0;
  • 78 240 903 990 731 ÷ 2 = 39 120 451 995 365 + 1;
  • 39 120 451 995 365 ÷ 2 = 19 560 225 997 682 + 1;
  • 19 560 225 997 682 ÷ 2 = 9 780 112 998 841 + 0;
  • 9 780 112 998 841 ÷ 2 = 4 890 056 499 420 + 1;
  • 4 890 056 499 420 ÷ 2 = 2 445 028 249 710 + 0;
  • 2 445 028 249 710 ÷ 2 = 1 222 514 124 855 + 0;
  • 1 222 514 124 855 ÷ 2 = 611 257 062 427 + 1;
  • 611 257 062 427 ÷ 2 = 305 628 531 213 + 1;
  • 305 628 531 213 ÷ 2 = 152 814 265 606 + 1;
  • 152 814 265 606 ÷ 2 = 76 407 132 803 + 0;
  • 76 407 132 803 ÷ 2 = 38 203 566 401 + 1;
  • 38 203 566 401 ÷ 2 = 19 101 783 200 + 1;
  • 19 101 783 200 ÷ 2 = 9 550 891 600 + 0;
  • 9 550 891 600 ÷ 2 = 4 775 445 800 + 0;
  • 4 775 445 800 ÷ 2 = 2 387 722 900 + 0;
  • 2 387 722 900 ÷ 2 = 1 193 861 450 + 0;
  • 1 193 861 450 ÷ 2 = 596 930 725 + 0;
  • 596 930 725 ÷ 2 = 298 465 362 + 1;
  • 298 465 362 ÷ 2 = 149 232 681 + 0;
  • 149 232 681 ÷ 2 = 74 616 340 + 1;
  • 74 616 340 ÷ 2 = 37 308 170 + 0;
  • 37 308 170 ÷ 2 = 18 654 085 + 0;
  • 18 654 085 ÷ 2 = 9 327 042 + 1;
  • 9 327 042 ÷ 2 = 4 663 521 + 0;
  • 4 663 521 ÷ 2 = 2 331 760 + 1;
  • 2 331 760 ÷ 2 = 1 165 880 + 0;
  • 1 165 880 ÷ 2 = 582 940 + 0;
  • 582 940 ÷ 2 = 291 470 + 0;
  • 291 470 ÷ 2 = 145 735 + 0;
  • 145 735 ÷ 2 = 72 867 + 1;
  • 72 867 ÷ 2 = 36 433 + 1;
  • 36 433 ÷ 2 = 18 216 + 1;
  • 18 216 ÷ 2 = 9 108 + 0;
  • 9 108 ÷ 2 = 4 554 + 0;
  • 4 554 ÷ 2 = 2 277 + 0;
  • 2 277 ÷ 2 = 1 138 + 1;
  • 1 138 ÷ 2 = 569 + 0;
  • 569 ÷ 2 = 284 + 1;
  • 284 ÷ 2 = 142 + 0;
  • 142 ÷ 2 = 71 + 0;
  • 71 ÷ 2 = 35 + 1;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 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.

176 182 853 028 894 470 526 211 079 437(10) =


10 0011 1001 0100 0111 0000 1010 0101 0000 0110 1110 0101 1011 1010 0110 1111 1001 0110 1000 1110 1110 0011 1101 0000 1101(2)


3. Normalize the binary representation of the number.

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


176 182 853 028 894 470 526 211 079 437(10) =


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


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


1.0001 1100 1010 0011 1000 0101 0010 1000 0011 0111 0010 1101 1101 0011 0111 1100 1011 0100 0111 0111 0001 1110 1000 0110 1(2) × 297


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


Mantissa (not normalized):
1.0001 1100 1010 0011 1000 0101 0010 1000 0011 0111 0010 1101 1101 0011 0111 1100 1011 0100 0111 0111 0001 1110 1000 0110 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


97 + 2(8-1) - 1 =


(97 + 127)(10) =


224(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;
  • 224 ÷ 2 = 112 + 0;
  • 112 ÷ 2 = 56 + 0;
  • 56 ÷ 2 = 28 + 0;
  • 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) =


224(10) =


1110 0000(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 1110 0101 0001 1100 0010 10 0101 0000 0110 1110 0101 1011 1010 0110 1111 1001 0110 1000 1110 1110 0011 1101 0000 1101 =


000 1110 0101 0001 1100 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 0000


Mantissa (23 bits) =
000 1110 0101 0001 1100 0010


Decimal number 176 182 853 028 894 470 526 211 079 437 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0000 - 000 1110 0101 0001 1100 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