10 001 110 011 009 999 999 999 999 998 260 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 001 110 011 009 999 999 999 999 998 260(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 001 110 011 009 999 999 999 999 998 260(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 001 110 011 009 999 999 999 999 998 260 ÷ 2 = 5 000 555 005 504 999 999 999 999 999 130 + 0;
  • 5 000 555 005 504 999 999 999 999 999 130 ÷ 2 = 2 500 277 502 752 499 999 999 999 999 565 + 0;
  • 2 500 277 502 752 499 999 999 999 999 565 ÷ 2 = 1 250 138 751 376 249 999 999 999 999 782 + 1;
  • 1 250 138 751 376 249 999 999 999 999 782 ÷ 2 = 625 069 375 688 124 999 999 999 999 891 + 0;
  • 625 069 375 688 124 999 999 999 999 891 ÷ 2 = 312 534 687 844 062 499 999 999 999 945 + 1;
  • 312 534 687 844 062 499 999 999 999 945 ÷ 2 = 156 267 343 922 031 249 999 999 999 972 + 1;
  • 156 267 343 922 031 249 999 999 999 972 ÷ 2 = 78 133 671 961 015 624 999 999 999 986 + 0;
  • 78 133 671 961 015 624 999 999 999 986 ÷ 2 = 39 066 835 980 507 812 499 999 999 993 + 0;
  • 39 066 835 980 507 812 499 999 999 993 ÷ 2 = 19 533 417 990 253 906 249 999 999 996 + 1;
  • 19 533 417 990 253 906 249 999 999 996 ÷ 2 = 9 766 708 995 126 953 124 999 999 998 + 0;
  • 9 766 708 995 126 953 124 999 999 998 ÷ 2 = 4 883 354 497 563 476 562 499 999 999 + 0;
  • 4 883 354 497 563 476 562 499 999 999 ÷ 2 = 2 441 677 248 781 738 281 249 999 999 + 1;
  • 2 441 677 248 781 738 281 249 999 999 ÷ 2 = 1 220 838 624 390 869 140 624 999 999 + 1;
  • 1 220 838 624 390 869 140 624 999 999 ÷ 2 = 610 419 312 195 434 570 312 499 999 + 1;
  • 610 419 312 195 434 570 312 499 999 ÷ 2 = 305 209 656 097 717 285 156 249 999 + 1;
  • 305 209 656 097 717 285 156 249 999 ÷ 2 = 152 604 828 048 858 642 578 124 999 + 1;
  • 152 604 828 048 858 642 578 124 999 ÷ 2 = 76 302 414 024 429 321 289 062 499 + 1;
  • 76 302 414 024 429 321 289 062 499 ÷ 2 = 38 151 207 012 214 660 644 531 249 + 1;
  • 38 151 207 012 214 660 644 531 249 ÷ 2 = 19 075 603 506 107 330 322 265 624 + 1;
  • 19 075 603 506 107 330 322 265 624 ÷ 2 = 9 537 801 753 053 665 161 132 812 + 0;
  • 9 537 801 753 053 665 161 132 812 ÷ 2 = 4 768 900 876 526 832 580 566 406 + 0;
  • 4 768 900 876 526 832 580 566 406 ÷ 2 = 2 384 450 438 263 416 290 283 203 + 0;
  • 2 384 450 438 263 416 290 283 203 ÷ 2 = 1 192 225 219 131 708 145 141 601 + 1;
  • 1 192 225 219 131 708 145 141 601 ÷ 2 = 596 112 609 565 854 072 570 800 + 1;
  • 596 112 609 565 854 072 570 800 ÷ 2 = 298 056 304 782 927 036 285 400 + 0;
  • 298 056 304 782 927 036 285 400 ÷ 2 = 149 028 152 391 463 518 142 700 + 0;
  • 149 028 152 391 463 518 142 700 ÷ 2 = 74 514 076 195 731 759 071 350 + 0;
  • 74 514 076 195 731 759 071 350 ÷ 2 = 37 257 038 097 865 879 535 675 + 0;
  • 37 257 038 097 865 879 535 675 ÷ 2 = 18 628 519 048 932 939 767 837 + 1;
  • 18 628 519 048 932 939 767 837 ÷ 2 = 9 314 259 524 466 469 883 918 + 1;
  • 9 314 259 524 466 469 883 918 ÷ 2 = 4 657 129 762 233 234 941 959 + 0;
  • 4 657 129 762 233 234 941 959 ÷ 2 = 2 328 564 881 116 617 470 979 + 1;
  • 2 328 564 881 116 617 470 979 ÷ 2 = 1 164 282 440 558 308 735 489 + 1;
  • 1 164 282 440 558 308 735 489 ÷ 2 = 582 141 220 279 154 367 744 + 1;
  • 582 141 220 279 154 367 744 ÷ 2 = 291 070 610 139 577 183 872 + 0;
  • 291 070 610 139 577 183 872 ÷ 2 = 145 535 305 069 788 591 936 + 0;
  • 145 535 305 069 788 591 936 ÷ 2 = 72 767 652 534 894 295 968 + 0;
  • 72 767 652 534 894 295 968 ÷ 2 = 36 383 826 267 447 147 984 + 0;
  • 36 383 826 267 447 147 984 ÷ 2 = 18 191 913 133 723 573 992 + 0;
  • 18 191 913 133 723 573 992 ÷ 2 = 9 095 956 566 861 786 996 + 0;
  • 9 095 956 566 861 786 996 ÷ 2 = 4 547 978 283 430 893 498 + 0;
  • 4 547 978 283 430 893 498 ÷ 2 = 2 273 989 141 715 446 749 + 0;
  • 2 273 989 141 715 446 749 ÷ 2 = 1 136 994 570 857 723 374 + 1;
  • 1 136 994 570 857 723 374 ÷ 2 = 568 497 285 428 861 687 + 0;
  • 568 497 285 428 861 687 ÷ 2 = 284 248 642 714 430 843 + 1;
  • 284 248 642 714 430 843 ÷ 2 = 142 124 321 357 215 421 + 1;
  • 142 124 321 357 215 421 ÷ 2 = 71 062 160 678 607 710 + 1;
  • 71 062 160 678 607 710 ÷ 2 = 35 531 080 339 303 855 + 0;
  • 35 531 080 339 303 855 ÷ 2 = 17 765 540 169 651 927 + 1;
  • 17 765 540 169 651 927 ÷ 2 = 8 882 770 084 825 963 + 1;
  • 8 882 770 084 825 963 ÷ 2 = 4 441 385 042 412 981 + 1;
  • 4 441 385 042 412 981 ÷ 2 = 2 220 692 521 206 490 + 1;
  • 2 220 692 521 206 490 ÷ 2 = 1 110 346 260 603 245 + 0;
  • 1 110 346 260 603 245 ÷ 2 = 555 173 130 301 622 + 1;
  • 555 173 130 301 622 ÷ 2 = 277 586 565 150 811 + 0;
  • 277 586 565 150 811 ÷ 2 = 138 793 282 575 405 + 1;
  • 138 793 282 575 405 ÷ 2 = 69 396 641 287 702 + 1;
  • 69 396 641 287 702 ÷ 2 = 34 698 320 643 851 + 0;
  • 34 698 320 643 851 ÷ 2 = 17 349 160 321 925 + 1;
  • 17 349 160 321 925 ÷ 2 = 8 674 580 160 962 + 1;
  • 8 674 580 160 962 ÷ 2 = 4 337 290 080 481 + 0;
  • 4 337 290 080 481 ÷ 2 = 2 168 645 040 240 + 1;
  • 2 168 645 040 240 ÷ 2 = 1 084 322 520 120 + 0;
  • 1 084 322 520 120 ÷ 2 = 542 161 260 060 + 0;
  • 542 161 260 060 ÷ 2 = 271 080 630 030 + 0;
  • 271 080 630 030 ÷ 2 = 135 540 315 015 + 0;
  • 135 540 315 015 ÷ 2 = 67 770 157 507 + 1;
  • 67 770 157 507 ÷ 2 = 33 885 078 753 + 1;
  • 33 885 078 753 ÷ 2 = 16 942 539 376 + 1;
  • 16 942 539 376 ÷ 2 = 8 471 269 688 + 0;
  • 8 471 269 688 ÷ 2 = 4 235 634 844 + 0;
  • 4 235 634 844 ÷ 2 = 2 117 817 422 + 0;
  • 2 117 817 422 ÷ 2 = 1 058 908 711 + 0;
  • 1 058 908 711 ÷ 2 = 529 454 355 + 1;
  • 529 454 355 ÷ 2 = 264 727 177 + 1;
  • 264 727 177 ÷ 2 = 132 363 588 + 1;
  • 132 363 588 ÷ 2 = 66 181 794 + 0;
  • 66 181 794 ÷ 2 = 33 090 897 + 0;
  • 33 090 897 ÷ 2 = 16 545 448 + 1;
  • 16 545 448 ÷ 2 = 8 272 724 + 0;
  • 8 272 724 ÷ 2 = 4 136 362 + 0;
  • 4 136 362 ÷ 2 = 2 068 181 + 0;
  • 2 068 181 ÷ 2 = 1 034 090 + 1;
  • 1 034 090 ÷ 2 = 517 045 + 0;
  • 517 045 ÷ 2 = 258 522 + 1;
  • 258 522 ÷ 2 = 129 261 + 0;
  • 129 261 ÷ 2 = 64 630 + 1;
  • 64 630 ÷ 2 = 32 315 + 0;
  • 32 315 ÷ 2 = 16 157 + 1;
  • 16 157 ÷ 2 = 8 078 + 1;
  • 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 001 110 011 009 999 999 999 999 998 260(10) =


111 1110 0011 1011 0101 0100 0100 1110 0001 1100 0010 1101 1010 1111 0111 0100 0000 0011 1011 0000 1100 0111 1111 1001 0011 0100(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 001 110 011 009 999 999 999 999 998 260(10) =


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


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


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


111 1100 0111 0110 1010 1000


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 0110 1010 1000


Decimal number 10 001 110 011 009 999 999 999 999 998 260 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0101 - 111 1100 0111 0110 1010 1000


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