110 000 110 101 011 011 000 000 000 000 296 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 110 000 110 101 011 011 000 000 000 000 296(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
110 000 110 101 011 011 000 000 000 000 296(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;
  • 110 000 110 101 011 011 000 000 000 000 296 ÷ 2 = 55 000 055 050 505 505 500 000 000 000 148 + 0;
  • 55 000 055 050 505 505 500 000 000 000 148 ÷ 2 = 27 500 027 525 252 752 750 000 000 000 074 + 0;
  • 27 500 027 525 252 752 750 000 000 000 074 ÷ 2 = 13 750 013 762 626 376 375 000 000 000 037 + 0;
  • 13 750 013 762 626 376 375 000 000 000 037 ÷ 2 = 6 875 006 881 313 188 187 500 000 000 018 + 1;
  • 6 875 006 881 313 188 187 500 000 000 018 ÷ 2 = 3 437 503 440 656 594 093 750 000 000 009 + 0;
  • 3 437 503 440 656 594 093 750 000 000 009 ÷ 2 = 1 718 751 720 328 297 046 875 000 000 004 + 1;
  • 1 718 751 720 328 297 046 875 000 000 004 ÷ 2 = 859 375 860 164 148 523 437 500 000 002 + 0;
  • 859 375 860 164 148 523 437 500 000 002 ÷ 2 = 429 687 930 082 074 261 718 750 000 001 + 0;
  • 429 687 930 082 074 261 718 750 000 001 ÷ 2 = 214 843 965 041 037 130 859 375 000 000 + 1;
  • 214 843 965 041 037 130 859 375 000 000 ÷ 2 = 107 421 982 520 518 565 429 687 500 000 + 0;
  • 107 421 982 520 518 565 429 687 500 000 ÷ 2 = 53 710 991 260 259 282 714 843 750 000 + 0;
  • 53 710 991 260 259 282 714 843 750 000 ÷ 2 = 26 855 495 630 129 641 357 421 875 000 + 0;
  • 26 855 495 630 129 641 357 421 875 000 ÷ 2 = 13 427 747 815 064 820 678 710 937 500 + 0;
  • 13 427 747 815 064 820 678 710 937 500 ÷ 2 = 6 713 873 907 532 410 339 355 468 750 + 0;
  • 6 713 873 907 532 410 339 355 468 750 ÷ 2 = 3 356 936 953 766 205 169 677 734 375 + 0;
  • 3 356 936 953 766 205 169 677 734 375 ÷ 2 = 1 678 468 476 883 102 584 838 867 187 + 1;
  • 1 678 468 476 883 102 584 838 867 187 ÷ 2 = 839 234 238 441 551 292 419 433 593 + 1;
  • 839 234 238 441 551 292 419 433 593 ÷ 2 = 419 617 119 220 775 646 209 716 796 + 1;
  • 419 617 119 220 775 646 209 716 796 ÷ 2 = 209 808 559 610 387 823 104 858 398 + 0;
  • 209 808 559 610 387 823 104 858 398 ÷ 2 = 104 904 279 805 193 911 552 429 199 + 0;
  • 104 904 279 805 193 911 552 429 199 ÷ 2 = 52 452 139 902 596 955 776 214 599 + 1;
  • 52 452 139 902 596 955 776 214 599 ÷ 2 = 26 226 069 951 298 477 888 107 299 + 1;
  • 26 226 069 951 298 477 888 107 299 ÷ 2 = 13 113 034 975 649 238 944 053 649 + 1;
  • 13 113 034 975 649 238 944 053 649 ÷ 2 = 6 556 517 487 824 619 472 026 824 + 1;
  • 6 556 517 487 824 619 472 026 824 ÷ 2 = 3 278 258 743 912 309 736 013 412 + 0;
  • 3 278 258 743 912 309 736 013 412 ÷ 2 = 1 639 129 371 956 154 868 006 706 + 0;
  • 1 639 129 371 956 154 868 006 706 ÷ 2 = 819 564 685 978 077 434 003 353 + 0;
  • 819 564 685 978 077 434 003 353 ÷ 2 = 409 782 342 989 038 717 001 676 + 1;
  • 409 782 342 989 038 717 001 676 ÷ 2 = 204 891 171 494 519 358 500 838 + 0;
  • 204 891 171 494 519 358 500 838 ÷ 2 = 102 445 585 747 259 679 250 419 + 0;
  • 102 445 585 747 259 679 250 419 ÷ 2 = 51 222 792 873 629 839 625 209 + 1;
  • 51 222 792 873 629 839 625 209 ÷ 2 = 25 611 396 436 814 919 812 604 + 1;
  • 25 611 396 436 814 919 812 604 ÷ 2 = 12 805 698 218 407 459 906 302 + 0;
  • 12 805 698 218 407 459 906 302 ÷ 2 = 6 402 849 109 203 729 953 151 + 0;
  • 6 402 849 109 203 729 953 151 ÷ 2 = 3 201 424 554 601 864 976 575 + 1;
  • 3 201 424 554 601 864 976 575 ÷ 2 = 1 600 712 277 300 932 488 287 + 1;
  • 1 600 712 277 300 932 488 287 ÷ 2 = 800 356 138 650 466 244 143 + 1;
  • 800 356 138 650 466 244 143 ÷ 2 = 400 178 069 325 233 122 071 + 1;
  • 400 178 069 325 233 122 071 ÷ 2 = 200 089 034 662 616 561 035 + 1;
  • 200 089 034 662 616 561 035 ÷ 2 = 100 044 517 331 308 280 517 + 1;
  • 100 044 517 331 308 280 517 ÷ 2 = 50 022 258 665 654 140 258 + 1;
  • 50 022 258 665 654 140 258 ÷ 2 = 25 011 129 332 827 070 129 + 0;
  • 25 011 129 332 827 070 129 ÷ 2 = 12 505 564 666 413 535 064 + 1;
  • 12 505 564 666 413 535 064 ÷ 2 = 6 252 782 333 206 767 532 + 0;
  • 6 252 782 333 206 767 532 ÷ 2 = 3 126 391 166 603 383 766 + 0;
  • 3 126 391 166 603 383 766 ÷ 2 = 1 563 195 583 301 691 883 + 0;
  • 1 563 195 583 301 691 883 ÷ 2 = 781 597 791 650 845 941 + 1;
  • 781 597 791 650 845 941 ÷ 2 = 390 798 895 825 422 970 + 1;
  • 390 798 895 825 422 970 ÷ 2 = 195 399 447 912 711 485 + 0;
  • 195 399 447 912 711 485 ÷ 2 = 97 699 723 956 355 742 + 1;
  • 97 699 723 956 355 742 ÷ 2 = 48 849 861 978 177 871 + 0;
  • 48 849 861 978 177 871 ÷ 2 = 24 424 930 989 088 935 + 1;
  • 24 424 930 989 088 935 ÷ 2 = 12 212 465 494 544 467 + 1;
  • 12 212 465 494 544 467 ÷ 2 = 6 106 232 747 272 233 + 1;
  • 6 106 232 747 272 233 ÷ 2 = 3 053 116 373 636 116 + 1;
  • 3 053 116 373 636 116 ÷ 2 = 1 526 558 186 818 058 + 0;
  • 1 526 558 186 818 058 ÷ 2 = 763 279 093 409 029 + 0;
  • 763 279 093 409 029 ÷ 2 = 381 639 546 704 514 + 1;
  • 381 639 546 704 514 ÷ 2 = 190 819 773 352 257 + 0;
  • 190 819 773 352 257 ÷ 2 = 95 409 886 676 128 + 1;
  • 95 409 886 676 128 ÷ 2 = 47 704 943 338 064 + 0;
  • 47 704 943 338 064 ÷ 2 = 23 852 471 669 032 + 0;
  • 23 852 471 669 032 ÷ 2 = 11 926 235 834 516 + 0;
  • 11 926 235 834 516 ÷ 2 = 5 963 117 917 258 + 0;
  • 5 963 117 917 258 ÷ 2 = 2 981 558 958 629 + 0;
  • 2 981 558 958 629 ÷ 2 = 1 490 779 479 314 + 1;
  • 1 490 779 479 314 ÷ 2 = 745 389 739 657 + 0;
  • 745 389 739 657 ÷ 2 = 372 694 869 828 + 1;
  • 372 694 869 828 ÷ 2 = 186 347 434 914 + 0;
  • 186 347 434 914 ÷ 2 = 93 173 717 457 + 0;
  • 93 173 717 457 ÷ 2 = 46 586 858 728 + 1;
  • 46 586 858 728 ÷ 2 = 23 293 429 364 + 0;
  • 23 293 429 364 ÷ 2 = 11 646 714 682 + 0;
  • 11 646 714 682 ÷ 2 = 5 823 357 341 + 0;
  • 5 823 357 341 ÷ 2 = 2 911 678 670 + 1;
  • 2 911 678 670 ÷ 2 = 1 455 839 335 + 0;
  • 1 455 839 335 ÷ 2 = 727 919 667 + 1;
  • 727 919 667 ÷ 2 = 363 959 833 + 1;
  • 363 959 833 ÷ 2 = 181 979 916 + 1;
  • 181 979 916 ÷ 2 = 90 989 958 + 0;
  • 90 989 958 ÷ 2 = 45 494 979 + 0;
  • 45 494 979 ÷ 2 = 22 747 489 + 1;
  • 22 747 489 ÷ 2 = 11 373 744 + 1;
  • 11 373 744 ÷ 2 = 5 686 872 + 0;
  • 5 686 872 ÷ 2 = 2 843 436 + 0;
  • 2 843 436 ÷ 2 = 1 421 718 + 0;
  • 1 421 718 ÷ 2 = 710 859 + 0;
  • 710 859 ÷ 2 = 355 429 + 1;
  • 355 429 ÷ 2 = 177 714 + 1;
  • 177 714 ÷ 2 = 88 857 + 0;
  • 88 857 ÷ 2 = 44 428 + 1;
  • 44 428 ÷ 2 = 22 214 + 0;
  • 22 214 ÷ 2 = 11 107 + 0;
  • 11 107 ÷ 2 = 5 553 + 1;
  • 5 553 ÷ 2 = 2 776 + 1;
  • 2 776 ÷ 2 = 1 388 + 0;
  • 1 388 ÷ 2 = 694 + 0;
  • 694 ÷ 2 = 347 + 0;
  • 347 ÷ 2 = 173 + 1;
  • 173 ÷ 2 = 86 + 1;
  • 86 ÷ 2 = 43 + 0;
  • 43 ÷ 2 = 21 + 1;
  • 21 ÷ 2 = 10 + 1;
  • 10 ÷ 2 = 5 + 0;
  • 5 ÷ 2 = 2 + 1;
  • 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.

110 000 110 101 011 011 000 000 000 000 296(10) =


101 0110 1100 0110 0101 1000 0110 0111 0100 0100 1010 0000 1010 0111 1010 1100 0101 1111 1100 1100 1000 1111 0011 1000 0001 0010 1000(2)


3. Normalize the binary representation of the number.

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


110 000 110 101 011 011 000 000 000 000 296(10) =


101 0110 1100 0110 0101 1000 0110 0111 0100 0100 1010 0000 1010 0111 1010 1100 0101 1111 1100 1100 1000 1111 0011 1000 0001 0010 1000(2) =


101 0110 1100 0110 0101 1000 0110 0111 0100 0100 1010 0000 1010 0111 1010 1100 0101 1111 1100 1100 1000 1111 0011 1000 0001 0010 1000(2) × 20 =


1.0101 1011 0001 1001 0110 0001 1001 1101 0001 0010 1000 0010 1001 1110 1011 0001 0111 1111 0011 0010 0011 1100 1110 0000 0100 1010 00(2) × 2106


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


Mantissa (not normalized):
1.0101 1011 0001 1001 0110 0001 1001 1101 0001 0010 1000 0010 1001 1110 1011 0001 0111 1111 0011 0010 0011 1100 1110 0000 0100 1010 00


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


106 + 2(8-1) - 1 =


(106 + 127)(10) =


233(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;
  • 233 ÷ 2 = 116 + 1;
  • 116 ÷ 2 = 58 + 0;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 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) =


233(10) =


1110 1001(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. 010 1101 1000 1100 1011 0000 110 0111 0100 0100 1010 0000 1010 0111 1010 1100 0101 1111 1100 1100 1000 1111 0011 1000 0001 0010 1000 =


010 1101 1000 1100 1011 0000


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 1001


Mantissa (23 bits) =
010 1101 1000 1100 1011 0000


Decimal number 110 000 110 101 011 011 000 000 000 000 296 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1001 - 010 1101 1000 1100 1011 0000

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