101 000 001 009 999 999 999 999 999 998 893 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 101 000 001 009 999 999 999 999 999 998 893(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
101 000 001 009 999 999 999 999 999 998 893(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;
  • 101 000 001 009 999 999 999 999 999 998 893 ÷ 2 = 50 500 000 504 999 999 999 999 999 999 446 + 1;
  • 50 500 000 504 999 999 999 999 999 999 446 ÷ 2 = 25 250 000 252 499 999 999 999 999 999 723 + 0;
  • 25 250 000 252 499 999 999 999 999 999 723 ÷ 2 = 12 625 000 126 249 999 999 999 999 999 861 + 1;
  • 12 625 000 126 249 999 999 999 999 999 861 ÷ 2 = 6 312 500 063 124 999 999 999 999 999 930 + 1;
  • 6 312 500 063 124 999 999 999 999 999 930 ÷ 2 = 3 156 250 031 562 499 999 999 999 999 965 + 0;
  • 3 156 250 031 562 499 999 999 999 999 965 ÷ 2 = 1 578 125 015 781 249 999 999 999 999 982 + 1;
  • 1 578 125 015 781 249 999 999 999 999 982 ÷ 2 = 789 062 507 890 624 999 999 999 999 991 + 0;
  • 789 062 507 890 624 999 999 999 999 991 ÷ 2 = 394 531 253 945 312 499 999 999 999 995 + 1;
  • 394 531 253 945 312 499 999 999 999 995 ÷ 2 = 197 265 626 972 656 249 999 999 999 997 + 1;
  • 197 265 626 972 656 249 999 999 999 997 ÷ 2 = 98 632 813 486 328 124 999 999 999 998 + 1;
  • 98 632 813 486 328 124 999 999 999 998 ÷ 2 = 49 316 406 743 164 062 499 999 999 999 + 0;
  • 49 316 406 743 164 062 499 999 999 999 ÷ 2 = 24 658 203 371 582 031 249 999 999 999 + 1;
  • 24 658 203 371 582 031 249 999 999 999 ÷ 2 = 12 329 101 685 791 015 624 999 999 999 + 1;
  • 12 329 101 685 791 015 624 999 999 999 ÷ 2 = 6 164 550 842 895 507 812 499 999 999 + 1;
  • 6 164 550 842 895 507 812 499 999 999 ÷ 2 = 3 082 275 421 447 753 906 249 999 999 + 1;
  • 3 082 275 421 447 753 906 249 999 999 ÷ 2 = 1 541 137 710 723 876 953 124 999 999 + 1;
  • 1 541 137 710 723 876 953 124 999 999 ÷ 2 = 770 568 855 361 938 476 562 499 999 + 1;
  • 770 568 855 361 938 476 562 499 999 ÷ 2 = 385 284 427 680 969 238 281 249 999 + 1;
  • 385 284 427 680 969 238 281 249 999 ÷ 2 = 192 642 213 840 484 619 140 624 999 + 1;
  • 192 642 213 840 484 619 140 624 999 ÷ 2 = 96 321 106 920 242 309 570 312 499 + 1;
  • 96 321 106 920 242 309 570 312 499 ÷ 2 = 48 160 553 460 121 154 785 156 249 + 1;
  • 48 160 553 460 121 154 785 156 249 ÷ 2 = 24 080 276 730 060 577 392 578 124 + 1;
  • 24 080 276 730 060 577 392 578 124 ÷ 2 = 12 040 138 365 030 288 696 289 062 + 0;
  • 12 040 138 365 030 288 696 289 062 ÷ 2 = 6 020 069 182 515 144 348 144 531 + 0;
  • 6 020 069 182 515 144 348 144 531 ÷ 2 = 3 010 034 591 257 572 174 072 265 + 1;
  • 3 010 034 591 257 572 174 072 265 ÷ 2 = 1 505 017 295 628 786 087 036 132 + 1;
  • 1 505 017 295 628 786 087 036 132 ÷ 2 = 752 508 647 814 393 043 518 066 + 0;
  • 752 508 647 814 393 043 518 066 ÷ 2 = 376 254 323 907 196 521 759 033 + 0;
  • 376 254 323 907 196 521 759 033 ÷ 2 = 188 127 161 953 598 260 879 516 + 1;
  • 188 127 161 953 598 260 879 516 ÷ 2 = 94 063 580 976 799 130 439 758 + 0;
  • 94 063 580 976 799 130 439 758 ÷ 2 = 47 031 790 488 399 565 219 879 + 0;
  • 47 031 790 488 399 565 219 879 ÷ 2 = 23 515 895 244 199 782 609 939 + 1;
  • 23 515 895 244 199 782 609 939 ÷ 2 = 11 757 947 622 099 891 304 969 + 1;
  • 11 757 947 622 099 891 304 969 ÷ 2 = 5 878 973 811 049 945 652 484 + 1;
  • 5 878 973 811 049 945 652 484 ÷ 2 = 2 939 486 905 524 972 826 242 + 0;
  • 2 939 486 905 524 972 826 242 ÷ 2 = 1 469 743 452 762 486 413 121 + 0;
  • 1 469 743 452 762 486 413 121 ÷ 2 = 734 871 726 381 243 206 560 + 1;
  • 734 871 726 381 243 206 560 ÷ 2 = 367 435 863 190 621 603 280 + 0;
  • 367 435 863 190 621 603 280 ÷ 2 = 183 717 931 595 310 801 640 + 0;
  • 183 717 931 595 310 801 640 ÷ 2 = 91 858 965 797 655 400 820 + 0;
  • 91 858 965 797 655 400 820 ÷ 2 = 45 929 482 898 827 700 410 + 0;
  • 45 929 482 898 827 700 410 ÷ 2 = 22 964 741 449 413 850 205 + 0;
  • 22 964 741 449 413 850 205 ÷ 2 = 11 482 370 724 706 925 102 + 1;
  • 11 482 370 724 706 925 102 ÷ 2 = 5 741 185 362 353 462 551 + 0;
  • 5 741 185 362 353 462 551 ÷ 2 = 2 870 592 681 176 731 275 + 1;
  • 2 870 592 681 176 731 275 ÷ 2 = 1 435 296 340 588 365 637 + 1;
  • 1 435 296 340 588 365 637 ÷ 2 = 717 648 170 294 182 818 + 1;
  • 717 648 170 294 182 818 ÷ 2 = 358 824 085 147 091 409 + 0;
  • 358 824 085 147 091 409 ÷ 2 = 179 412 042 573 545 704 + 1;
  • 179 412 042 573 545 704 ÷ 2 = 89 706 021 286 772 852 + 0;
  • 89 706 021 286 772 852 ÷ 2 = 44 853 010 643 386 426 + 0;
  • 44 853 010 643 386 426 ÷ 2 = 22 426 505 321 693 213 + 0;
  • 22 426 505 321 693 213 ÷ 2 = 11 213 252 660 846 606 + 1;
  • 11 213 252 660 846 606 ÷ 2 = 5 606 626 330 423 303 + 0;
  • 5 606 626 330 423 303 ÷ 2 = 2 803 313 165 211 651 + 1;
  • 2 803 313 165 211 651 ÷ 2 = 1 401 656 582 605 825 + 1;
  • 1 401 656 582 605 825 ÷ 2 = 700 828 291 302 912 + 1;
  • 700 828 291 302 912 ÷ 2 = 350 414 145 651 456 + 0;
  • 350 414 145 651 456 ÷ 2 = 175 207 072 825 728 + 0;
  • 175 207 072 825 728 ÷ 2 = 87 603 536 412 864 + 0;
  • 87 603 536 412 864 ÷ 2 = 43 801 768 206 432 + 0;
  • 43 801 768 206 432 ÷ 2 = 21 900 884 103 216 + 0;
  • 21 900 884 103 216 ÷ 2 = 10 950 442 051 608 + 0;
  • 10 950 442 051 608 ÷ 2 = 5 475 221 025 804 + 0;
  • 5 475 221 025 804 ÷ 2 = 2 737 610 512 902 + 0;
  • 2 737 610 512 902 ÷ 2 = 1 368 805 256 451 + 0;
  • 1 368 805 256 451 ÷ 2 = 684 402 628 225 + 1;
  • 684 402 628 225 ÷ 2 = 342 201 314 112 + 1;
  • 342 201 314 112 ÷ 2 = 171 100 657 056 + 0;
  • 171 100 657 056 ÷ 2 = 85 550 328 528 + 0;
  • 85 550 328 528 ÷ 2 = 42 775 164 264 + 0;
  • 42 775 164 264 ÷ 2 = 21 387 582 132 + 0;
  • 21 387 582 132 ÷ 2 = 10 693 791 066 + 0;
  • 10 693 791 066 ÷ 2 = 5 346 895 533 + 0;
  • 5 346 895 533 ÷ 2 = 2 673 447 766 + 1;
  • 2 673 447 766 ÷ 2 = 1 336 723 883 + 0;
  • 1 336 723 883 ÷ 2 = 668 361 941 + 1;
  • 668 361 941 ÷ 2 = 334 180 970 + 1;
  • 334 180 970 ÷ 2 = 167 090 485 + 0;
  • 167 090 485 ÷ 2 = 83 545 242 + 1;
  • 83 545 242 ÷ 2 = 41 772 621 + 0;
  • 41 772 621 ÷ 2 = 20 886 310 + 1;
  • 20 886 310 ÷ 2 = 10 443 155 + 0;
  • 10 443 155 ÷ 2 = 5 221 577 + 1;
  • 5 221 577 ÷ 2 = 2 610 788 + 1;
  • 2 610 788 ÷ 2 = 1 305 394 + 0;
  • 1 305 394 ÷ 2 = 652 697 + 0;
  • 652 697 ÷ 2 = 326 348 + 1;
  • 326 348 ÷ 2 = 163 174 + 0;
  • 163 174 ÷ 2 = 81 587 + 0;
  • 81 587 ÷ 2 = 40 793 + 1;
  • 40 793 ÷ 2 = 20 396 + 1;
  • 20 396 ÷ 2 = 10 198 + 0;
  • 10 198 ÷ 2 = 5 099 + 0;
  • 5 099 ÷ 2 = 2 549 + 1;
  • 2 549 ÷ 2 = 1 274 + 1;
  • 1 274 ÷ 2 = 637 + 0;
  • 637 ÷ 2 = 318 + 1;
  • 318 ÷ 2 = 159 + 0;
  • 159 ÷ 2 = 79 + 1;
  • 79 ÷ 2 = 39 + 1;
  • 39 ÷ 2 = 19 + 1;
  • 19 ÷ 2 = 9 + 1;
  • 9 ÷ 2 = 4 + 1;
  • 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.

101 000 001 009 999 999 999 999 999 998 893(10) =


100 1111 1010 1100 1100 1001 1010 1011 0100 0000 1100 0000 0001 1101 0001 0111 0100 0001 0011 1001 0011 0011 1111 1111 1011 1010 1101(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:


101 000 001 009 999 999 999 999 999 998 893(10) =


100 1111 1010 1100 1100 1001 1010 1011 0100 0000 1100 0000 0001 1101 0001 0111 0100 0001 0011 1001 0011 0011 1111 1111 1011 1010 1101(2) =


100 1111 1010 1100 1100 1001 1010 1011 0100 0000 1100 0000 0001 1101 0001 0111 0100 0001 0011 1001 0011 0011 1111 1111 1011 1010 1101(2) × 20 =


1.0011 1110 1011 0011 0010 0110 1010 1101 0000 0011 0000 0000 0111 0100 0101 1101 0000 0100 1110 0100 1100 1111 1111 1110 1110 1011 01(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.0011 1110 1011 0011 0010 0110 1010 1101 0000 0011 0000 0000 0111 0100 0101 1101 0000 0100 1110 0100 1100 1111 1111 1110 1110 1011 01


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. 001 1111 0101 1001 1001 0011 010 1011 0100 0000 1100 0000 0001 1101 0001 0111 0100 0001 0011 1001 0011 0011 1111 1111 1011 1010 1101 =


001 1111 0101 1001 1001 0011


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) =
001 1111 0101 1001 1001 0011


Decimal number 101 000 001 009 999 999 999 999 999 998 893 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1001 - 001 1111 0101 1001 1001 0011

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